Skip to content

Node.js based forum software built for the modern web

fix: only send Update(Actor) to followers, #12674

Julian Lam26946c7fe603
diff --git a/src/api/activitypub.js b/src/api/activitypub.js
index 7c1c955916..85b2d51ee8 100644
--- a/src/api/activitypub.js
+++ b/src/api/activitypub.js
@@ -175,7 +175,7 @@ activitypubApi.update = {};
activitypubApi.update.profile = enabledCheck(async (caller, { uid }) => {
const [object, targets] = await Promise.all([
activitypub.mocks.actors.user(uid),
- db.getSortedSetMembers('usersRemote:lastCrawled'),
+ db.getSortedSetMembers(`followersRemote:${caller.uid}`),
]);
await activitypub.send('uid', caller.uid, targets, {
@@ -190,7 +190,7 @@ activitypubApi.update.profile = enabledCheck(async (caller, { uid }) => {
activitypubApi.update.category = enabledCheck(async (caller, { cid }) => {
const [object, targets] = await Promise.all([
activitypub.mocks.actors.category(cid),
- db.getSortedSetMembers('usersRemote:lastCrawled'),
+ activitypub.notes.getCategoryFollowers(cid),
]);
await activitypub.send('cid', cid, targets, {