mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
feat: rescheduling (editing ST) (#9445)
This commit is contained in:
@@ -61,6 +61,7 @@ postsAPI.edit = async function (caller, data) {
|
||||
|
||||
data.uid = caller.uid;
|
||||
data.req = apiHelpers.buildReqObject(caller);
|
||||
data.timestamp = parseInt(data.timestamp, 10) || Date.now();
|
||||
|
||||
const editResult = await posts.edit(data);
|
||||
if (editResult.topic.isMainPost) {
|
||||
|
||||
Reference in New Issue
Block a user