mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
feat: have category actor send Announce(Note) activity on posts from that cid
re: #12434
This commit is contained in:
@@ -254,3 +254,11 @@ Notes.syncUserInboxes = async function (tid) {
|
||||
winston.verbose(`[activitypub/syncUserInboxes] Syncing tid ${tid} with ${uids.size} inboxes`);
|
||||
await db.sortedSetsAdd(keys, keys.map(() => score || Date.now()), tid);
|
||||
};
|
||||
|
||||
Notes.getCategoryFollowers = async (cid) => {
|
||||
// Retrieves remote users who have followed a category; used to build recipient list
|
||||
let uids = await db.getSortedSetRangeByScore(`cid:${cid}:uid:watch:state`, 0, -1, categories.watchStates.tracking, categories.watchStates.tracking);
|
||||
uids = uids.filter(uid => !utils.isNumber(uid));
|
||||
|
||||
return uids;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user