mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +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.syncBacklinks(postData),
|
||||||
Topics.markAsRead([tid], uid),
|
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
|
// Returned data is a superset of post summary data
|
||||||
postData.user = userInfo;
|
postData.user = userInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user