fix: only call syncUserInboxes on post create if local uid creates post in cid -1

This commit is contained in:
Julian Lam
2026-02-17 10:45:29 -05:00
parent b1c097f84b
commit 45d2e628dd

View File

@@ -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;