mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
feat: closes #12902, allow adding users as post editors
This commit is contained in:
@@ -81,6 +81,7 @@ module.exports = function (Posts) {
|
||||
deleteDiffs(pids),
|
||||
deleteFromUploads(pids),
|
||||
db.sortedSetsRemove(['posts:pid', 'posts:votes', 'posts:flagged'], pids),
|
||||
db.deleteAll(pids.map(pid => `pid:${pid}:editors`)),
|
||||
]);
|
||||
|
||||
await resolveFlags(postData, uid);
|
||||
|
||||
Reference in New Issue
Block a user