Unable to delete spammer

Both myself and another moderator at Stonehearth are unable to delete a spammer from the flag interface. Received the following two errors in console:

PUT http://discourse.stonehearth.net/users/clian/emails.json 403 (Forbidden)
ne.cors.t.crossDomain.send @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:5
ae.extend.ajax @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:5
s @ _application-7ead19090cda39d75136d3f9b0417b96.js:112
_ @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:43741
h @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:45369
Discourse.Ajax.Em.Mixin.create.ajax @ _application-7ead19090cda39d75136d3f9b0417b96.js:128
v.extend.m.value @ _application-7ead19090cda39d75136d3f9b0417b96.js:26362
Discourse.User.extend.deleteAsSpammer @ _admin-da96adc86fa1f553a72fe031124130c8.js:2225
Discourse.Route.extend.actions.deleteSpammer @ _application-7ead19090cda39d75136d3f9b0417b96.js:89002
C @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:23031
u @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:43252
l.trigger @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:41976
c.default.extend.send @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:22529
r.Mixin.create.send @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:26446
(anonymous function) @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:17662
a.run @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:231
u @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:15102
s.default.registeredActions.(anonymous function).handler @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:17660
(anonymous function) @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:34998
ae.event.dispatch @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:4
v.handle @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:4
Error: Forbidden
    at s (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:25982)
    at Object.e.default.trigger (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:44371)
    at h._onerror (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:45385)
    at f (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:43616)
    at _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:25967
    at r.invoke (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:885)
    at Object.r.flush (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:950)
    at Object.n.flush (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:755)
    at Object.a.end (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:180)
    at Object.a.run (_ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:235)
s @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:26005
e.default.trigger @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:44371
h._onerror @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:45385
f @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:43616
(anonymous function) @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:25967
r.invoke @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:885
r.flush @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:950
n.flush @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:755
a.end @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:180
a.run @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:235
u @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:15102
n.error @ _application-7ead19090cda39d75136d3f9b0417b96.js:92
l @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:3
c.fireWith @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:3
n @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:5
(anonymous function) @ _ember_jquery-37c15254b70c40ceb7888cb7248c79d6.js:5

Maybe due to PMs? Remember moderators can’t see PMs. Just a thought, still likely a bug.

Doubtful…user is only 40 minutes old. Would PMs still show up for moderators on the user’s Admin page?

Private topics 4 there

Ah…that’s odd, So, if I am understanding correctly: if a new user comes in, makes public spam but has sent PMs moderators cannot delete the spammer?

In this case it’s 3 PMs that say “post hidden due to community flagging” and the welcome PM.

Anyway we have a regression here because selecting “it’s spam” in the flag dialog doesn’t show a “delete spammer” button @neil. I noticed this a few weeks ago and forgot to raise it.

I went ahead and deleted the user for now, but we need to fix the bug.

7 Likes

This was definitely a regression. There was an error whenever the flag modal was opened when retrieving more info about the user. I fixed.

4 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.