mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-30 11:07:15 +02:00
fix: #8962, dont show null for purged targets
This commit is contained in:
@@ -87,7 +87,9 @@ module.exports = function (User) {
|
||||
|
||||
delete flagObj.value;
|
||||
delete flagObj.score;
|
||||
|
||||
if (!tids[idx]) {
|
||||
flagObj.targetPurged = true;
|
||||
}
|
||||
return _.extend(flagObj, topicData[idx]);
|
||||
});
|
||||
return flags;
|
||||
|
||||
Reference in New Issue
Block a user