mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
feat: #13255, deliver asserted topics to remote category followers
This commit is contained in:
@@ -462,6 +462,12 @@ Notes.syncUserInboxes = async function (tid, uid) {
|
||||
uids.add(uid);
|
||||
});
|
||||
|
||||
// Category followers
|
||||
const categoryFollowers = await activitypub.actors.getLocalFollowers(cid);
|
||||
categoryFollowers.uids.forEach((uid) => {
|
||||
uids.add(uid);
|
||||
});
|
||||
|
||||
const keys = Array.from(uids).map(uid => `uid:${uid}:inbox`);
|
||||
const score = await db.sortedSetScore(`cid:${cid}:tids`, tid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user