mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 17:31:59 +02: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:
@@ -37,7 +37,7 @@ postsAPI.edit = async function (caller, data) {
|
||||
|
||||
const editResult = await posts.edit(data);
|
||||
if (editResult.topic.isMainPost) {
|
||||
await topics.thumbs.commit(data.uuid, editResult.topic.tid);
|
||||
await topics.thumbs.migrate(data.uuid, editResult.topic.tid);
|
||||
}
|
||||
if (editResult.topic.renamed) {
|
||||
await events.log({
|
||||
|
||||
Reference in New Issue
Block a user