fix: on topic move out of cid -1, also federate to the public address

This commit is contained in:
Julian Lam
2024-09-06 14:35:57 -04:00
parent 6ed32f6781
commit 909437c306

View File

@@ -316,8 +316,8 @@ activitypubApi.announce.note = enabledCheck(async (caller, { tid }) => {
}
const { to, cc, targets } = await buildRecipients({
to: [`${nconf.get('url')}/uid/${caller.uid}/followers`],
cc: [uid],
to: [activitypub._constants.publicAddress],
cc: [`${nconf.get('url')}/uid/${caller.uid}/followers`, uid],
}, { uid: caller.uid });
await activitypub.send('uid', caller.uid, Array.from(targets), {