Skip to content

Node.js based forum software built for the modern web

fix: remove faulty code that tried to announce a remote object but couldn't as the ID was not a number

Julian Lam7adfe39ea1ab
diff --git a/src/api/topics.js b/src/api/topics.js
index 38e3cefbf8..65f7b485ee 100644
--- a/src/api/topics.js
+++ b/src/api/topics.js
@@ -322,8 +322,6 @@ topicsAPI.move = async (caller, { tid, cid }) => {
if (!topicData.deleted) {
socketHelpers.sendNotificationToTopicOwner(tid, caller.uid, 'move', 'notifications:moved-your-topic');
activitypubApi.announce.note(caller, { tid });
- const { activity } = await activitypub.mocks.activities.create(topicData.mainPid, caller.uid);
- await activitypub.feps.announce(topicData.mainPid, activity);
}
await events.log({