mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Send context of where a user was deleted as a spammer so it can be logged
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user