@ -65,9 +65,9 @@
"nodebb-plugin-spam-be-gone": "0.5.0",
"nodebb-rewards-essentials": "0.0.9",
"nodebb-theme-lavender": "4.0.5",
"nodebb-theme-persona": "5.0.18",
"nodebb-theme-persona": "5.0.19",
"nodebb-theme-slick": "1.1.0",
"nodebb-theme-vanilla": "6.0.13",
"nodebb-theme-vanilla": "6.0.14",
"nodebb-widget-essentials": "3.0.1",
"nodemailer": "2.6.4",
"nodemailer-sendmail-transport": "1.0.0",
@ -110,6 +110,12 @@ modsController.flags.detail = function (req, res, next) {
return next(new Error('[[error:no-privileges]]'));
}
if (results.flagData.type === 'user') {
results.flagData.type_path = 'uid';
} else if (results.flagData.type === 'post') {
results.flagData.type_path = 'post';
res.render('flags/detail', Object.assign(results.flagData, {
assignees: results.assignees,
type_bool: ['post', 'user', 'empty'].reduce(function (memo, cur) {