mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 09:48:45 +02:00
feat: #13255 new topics in remote category addresses remote category, tests, fixes to tests
This commit is contained in:
@@ -129,7 +129,7 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid, post }) => {
|
||||
await Promise.all([
|
||||
activitypub.send('uid', caller.uid, Array.from(targets), activity),
|
||||
activitypub.feps.announce(pid, activity),
|
||||
activitypubApi.add(caller, { pid }),
|
||||
utils.isNumber(post.cid) ? activitypubApi.add(caller, { pid }) : undefined,
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
@@ -87,9 +87,7 @@ topicsAPI.create = async function (caller, data) {
|
||||
socketHelpers.notifyNew(caller.uid, 'newTopic', { posts: [result.postData], topic: result.topicData });
|
||||
|
||||
if (!isScheduling) {
|
||||
setTimeout(() => {
|
||||
activitypubApi.create.note(caller, { pid: result.postData.pid });
|
||||
}, 5000);
|
||||
await activitypubApi.create.note(caller, { pid: result.postData.pid });
|
||||
}
|
||||
|
||||
return result.topicData;
|
||||
|
||||
Reference in New Issue
Block a user