mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
fix missing translator, add flag reason
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, socket, app, bootbox, templates, ajaxify, Sortable */
|
/*global define, socket, app, bootbox, templates, ajaxify, Sortable */
|
||||||
|
|
||||||
define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-serializeobject.min'], function() {
|
define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-serializeobject.min', 'translator'], function(translator) {
|
||||||
var Categories = {}, newCategoryId = -1, sortables;
|
var Categories = {}, newCategoryId = -1, sortables;
|
||||||
|
|
||||||
Categories.init = function() {
|
Categories.init = function() {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ module.exports = function(SocketPosts) {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.fireHook('action:post.flag', {post: post, flaggingUser: flaggingUser});
|
plugins.fireHook('action:post.flag', {post: post, reason: data.reason, flaggingUser: flaggingUser});
|
||||||
notifications.push(notification, results.admins.concat(results.moderators).concat(results.globalMods), next);
|
notifications.push(notification, results.admins.concat(results.moderators).concat(results.globalMods), next);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user