Send context of where a user was deleted as a spammer so it can be logged
This commit is contained in:
parent
949b2068a5
commit
b6b30dabd4
|
@ -277,7 +277,7 @@ Discourse.AdminUser = Discourse.User.extend({
|
|||
"callback": function() {
|
||||
Discourse.ajax("/admin/users/" + user.get('id') + '.json', {
|
||||
type: 'DELETE',
|
||||
data: {delete_posts: true, block_email: true}
|
||||
data: {delete_posts: true, block_email: true, context: window.location.pathname}
|
||||
}).then(function(data) {
|
||||
if (data.deleted) {
|
||||
bootbox.alert(I18n.t("admin.user.deleted"), function() {
|
||||
|
|
Loading…
Reference in New Issue