mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: remove faulty code that tried to announce a remote object but couldn't as the ID was not a number
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user