fix: #8962, dont show null for purged targets

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 3488daa1e8
commit 86b7f8a5d4

@ -81,5 +81,6 @@
"bulk-actions": "Bulk Actions",
"bulk-resolve": "Resolve Flag(s)",
"bulk-success": "%1 flags updated"
"bulk-success": "%1 flags updated",
"flagged-timeago-readable": "Flagged <span class=\"timeago\" title=\"%1\"></span> (%2)"
}

@ -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;

Loading…
Cancel
Save