Revert "test: check if tests pass without await"

This reverts commit 5414cf473d.
This commit is contained in:
Barış Soner Uşaklı
2025-12-18 10:38:28 -05:00
parent 5414cf473d
commit b405a09bfd

View File

@@ -1,7 +1,5 @@
'use strict';
const winston = require('winston');
const user = require('../user');
const topics = require('../topics');
const categories = require('../categories');
@@ -82,9 +80,7 @@ topicsAPI.create = async function (caller, data) {
socketHelpers.notifyNew(caller.uid, 'newTopic', { posts: [result.postData], topic: result.topicData });
if (!isScheduling) {
activitypub.out.create.note(caller.uid, result.postData.pid).catch((err) => {
winston.error(`[activitypub] create.note failed ${err.stack}`);
});
await activitypub.out.create.note(caller.uid, result.postData.pid);
}
return result.topicData;
@@ -122,10 +118,6 @@ topicsAPI.reply = async function (caller, data) {
socketHelpers.notifyNew(caller.uid, 'newPost', result);
await activitypub.out.create.note(caller.uid, postData);
activitypub.out.create.note(caller.uid, postData).catch((err) => {
winston.error(`[activitypub] create.note failed ${err.stack}`);
});
return postData;
};