mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
refactor: tab rules
This commit is contained in:
@@ -94,7 +94,7 @@ postsAPI.edit = async function (caller, data) {
|
||||
]);
|
||||
|
||||
const uids = _.uniq(_.flatten(memberData).concat(String(caller.uid)));
|
||||
uids.forEach(uid => websockets.in(`uid_${uid}`).emit('event:post_edited', editResult));
|
||||
uids.forEach(uid => websockets.in(`uid_${uid}`).emit('event:post_edited', editResult));
|
||||
return returnData;
|
||||
};
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ topicsAPI.reply = async function (caller, data) {
|
||||
return queueObj;
|
||||
}
|
||||
|
||||
const postData = await topics.reply(payload); // postData seems to be a subset of postObj, refactor?
|
||||
const postData = await topics.reply(payload); // postData seems to be a subset of postObj, refactor?
|
||||
const postObj = await posts.getPostSummaryByPids([postData.pid], caller.uid, {});
|
||||
|
||||
const result = {
|
||||
|
||||
Reference in New Issue
Block a user