mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
fix: editing posts saving uncessary data
This commit is contained in:
@@ -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]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user