feat: moving a topic out of cid -1 federates an Announce activity, #12734

This commit is contained in:
Julian Lam
2024-08-22 14:45:17 -04:00
parent 76551c7123
commit daa665ebc0
2 changed files with 39 additions and 0 deletions

View File

@@ -339,6 +339,7 @@ topicsAPI.move = async (caller, { tid, cid }) => {
socketHelpers.emitToUids('event:topic_moved', topicData, notifyUids);
if (!topicData.deleted) {
socketHelpers.sendNotificationToTopicOwner(tid, caller.uid, 'move', 'notifications:moved-your-topic');
activitypubApi.announce.note(caller, { tid });
}
await events.log({