From 26946c7fe603ab96f460311c1e7d43eea77547ca Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 5 Jul 2024 11:14:41 -0400 Subject: [PATCH] fix: only send Update(Actor) to followers, #12674 --- src/api/activitypub.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, {