diff --git a/package.json b/package.json index 79c002a098..ebaaa2e724 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/controllers/mods.js b/src/controllers/mods.js index 98990e97ba..51d66dda30 100644 --- a/src/controllers/mods.js +++ b/src/controllers/mods.js @@ -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) {