fix: editing posts saving uncessary data

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 654d583059
commit e72fe25920

@ -23,7 +23,7 @@ module.exports = function (Posts) {
if (!canEdit.flag) {
throw new Error(canEdit.message);
}
let postData = await Posts.getPostData(data.pid);
let postData = await db.getObject('post:' + data.pid);
if (!postData) {
throw new Error('[[error:no-post]]');
}

Loading…
Cancel
Save