diff --git a/public/src/admin/manage/categories.js b/public/src/admin/manage/categories.js index 4683d20e60..886db2a78f 100644 --- a/public/src/admin/manage/categories.js +++ b/public/src/admin/manage/categories.js @@ -1,7 +1,7 @@ "use strict"; /*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; Categories.init = function() { diff --git a/src/socket.io/posts/flag.js b/src/socket.io/posts/flag.js index 5a44461ffb..97565753d6 100644 --- a/src/socket.io/posts/flag.js +++ b/src/socket.io/posts/flag.js @@ -98,7 +98,7 @@ module.exports = function(SocketPosts) { 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); }); }