mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
feat: server-side work for #9047
- rename Thumbs.commit to Thumbs.migrate - new PUT method that calls Thumbs.migrate - `checkThumbPrivileges` now takes a single object parameter (ins. of req/res)
This commit is contained in:
@@ -34,7 +34,7 @@ topicsAPI.create = async function (caller, data) {
|
||||
}
|
||||
|
||||
const result = await topics.post(payload);
|
||||
await topics.thumbs.commit(data.uuid, result.topicData.tid);
|
||||
await topics.thumbs.migrate(data.uuid, result.topicData.tid);
|
||||
|
||||
socketHelpers.emitToUids('event:new_post', { posts: [result.postData] }, [caller.uid]);
|
||||
socketHelpers.emitToUids('event:new_topic', result.topicData, [caller.uid]);
|
||||
|
||||
Reference in New Issue
Block a user