mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 02:23:16 +02:00
fix: #7921, dont create wrong entries in db for flag
upgrade script to remove wrong entries
This commit is contained in:
@@ -445,7 +445,7 @@ Flags.getTargetCid = async function (type, id) {
|
||||
if (type === 'post') {
|
||||
return await posts.getCidByPid(id);
|
||||
}
|
||||
return id;
|
||||
return null;
|
||||
};
|
||||
|
||||
Flags.update = function (flagId, uid, changeset, callback) {
|
||||
|
||||
Reference in New Issue
Block a user