mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
closes #5775
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user