Merge pull request #13613 from annando/permissions
Ensure to always have stored the receivers
This commit is contained in:
commit
89e105afbe
|
@ -1049,8 +1049,6 @@ class Item
|
||||||
Tag::createImplicitMentions($post['uri-id'], $post['thr-parent-id']);
|
Tag::createImplicitMentions($post['uri-id'], $post['thr-parent-id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityPub\Transmitter::storeReceiversForItem($post);
|
|
||||||
|
|
||||||
Hook::callAll('post_local_end', $post);
|
Hook::callAll('post_local_end', $post);
|
||||||
|
|
||||||
$author = DBA::selectFirst('contact', ['thumb'], ['uid' => $post['uid'], 'self' => true]);
|
$author = DBA::selectFirst('contact', ['thumb'], ['uid' => $post['uid'], 'self' => true]);
|
||||||
|
|
|
@ -1414,10 +1414,12 @@ class Item
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($source) && ($transmit || DI::config()->get('debug', 'store_source'))) {
|
if (!empty($source) && ($transmit || DI::config()->get('debug', 'store_source'))) {
|
||||||
Post\Activity::insert($item['uri-id'], $source);
|
Post\Activity::insert($posted_item['uri-id'], $source);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($transmit) {
|
if ($transmit) {
|
||||||
|
ActivityPub\Transmitter::storeReceiversForItem($posted_item);
|
||||||
|
|
||||||
Worker::add(['priority' => $priority, 'dont_fork' => true], 'Notifier', $notify_type, (int)$posted_item['uri-id'], (int)$posted_item['uid']);
|
Worker::add(['priority' => $priority, 'dont_fork' => true], 'Notifier', $notify_type, (int)$posted_item['uri-id'], (int)$posted_item['uid']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue