feat: rescheduling (editing ST) (#9445)

This commit is contained in:
gasoved
2021-03-31 00:51:23 +03:00
committed by GitHub
parent 6f51c46052
commit aa0137b1c4
7 changed files with 139 additions and 36 deletions

View File

@@ -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) {