mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +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) {
|
if (!topicData.deleted) {
|
||||||
socketHelpers.sendNotificationToTopicOwner(tid, caller.uid, 'move', 'notifications:moved-your-topic');
|
socketHelpers.sendNotificationToTopicOwner(tid, caller.uid, 'move', 'notifications:moved-your-topic');
|
||||||
activitypubApi.announce.note(caller, { tid });
|
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({
|
await events.log({
|
||||||
|
|||||||
Reference in New Issue
Block a user