mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-18 20:47:33 +01:00
fix: only call syncUserInboxes on post create if local uid creates post in cid -1
This commit is contained in:
@@ -269,7 +269,9 @@ module.exports = function (Topics) {
|
||||
Topics.syncBacklinks(postData),
|
||||
Topics.markAsRead([tid], uid),
|
||||
]);
|
||||
activitypub.notes.syncUserInboxes(tid, uid);
|
||||
if (utils.isNumber(postOwner) && postData.category.cid === -1) {
|
||||
activitypub.notes.syncUserInboxes(tid, uid);
|
||||
}
|
||||
|
||||
// Returned data is a superset of post summary data
|
||||
postData.user = userInfo;
|
||||
|
||||
Reference in New Issue
Block a user