mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
fix: only send Update(Actor) to followers, #12674
This commit is contained in:
@@ -175,7 +175,7 @@ activitypubApi.update = {};
|
|||||||
activitypubApi.update.profile = enabledCheck(async (caller, { uid }) => {
|
activitypubApi.update.profile = enabledCheck(async (caller, { uid }) => {
|
||||||
const [object, targets] = await Promise.all([
|
const [object, targets] = await Promise.all([
|
||||||
activitypub.mocks.actors.user(uid),
|
activitypub.mocks.actors.user(uid),
|
||||||
db.getSortedSetMembers('usersRemote:lastCrawled'),
|
db.getSortedSetMembers(`followersRemote:${caller.uid}`),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await activitypub.send('uid', caller.uid, targets, {
|
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 }) => {
|
activitypubApi.update.category = enabledCheck(async (caller, { cid }) => {
|
||||||
const [object, targets] = await Promise.all([
|
const [object, targets] = await Promise.all([
|
||||||
activitypub.mocks.actors.category(cid),
|
activitypub.mocks.actors.category(cid),
|
||||||
db.getSortedSetMembers('usersRemote:lastCrawled'),
|
activitypub.notes.getCategoryFollowers(cid),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await activitypub.send('cid', cid, targets, {
|
await activitypub.send('cid', cid, targets, {
|
||||||
|
|||||||
Reference in New Issue
Block a user