# Unable to delete spammer

**URL:** https://meta.discourse.org/t/unable-to-delete-spammer/40885
**Category:** Bug
**Created:** [11 maart 2016 om 05:19 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885 "2016-03-11T05:19:01Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [11 maart 2016 om 05:19 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/1 "2016-03-11T05:19:01Z")

</div>

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

```plaintext
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

```

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11 maart 2016 om 05:20 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/2 "2016-03-11T05:20:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [11 maart 2016 om 05:24 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/3 "2016-03-11T05:24:23Z")

</div>

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

 ![](https://global.discourse-cdn.com/meta/original/3X/d/9/d97d6cf83aee38331c8452a2d9a2a92855b2d5aa.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11 maart 2016 om 05:45 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/4 "2016-03-11T05:45:40Z")

</div>

Private topics 4 there

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [11 maart 2016 om 05:53 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/5 "2016-03-11T05:53:47Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11 maart 2016 om 08:38 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/6 "2016-03-11T08:38:05Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [14 maart 2016 om 19:49 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/7 "2016-03-14T19:49:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [16 maart 2016 om 20:19 UTC](https://meta.discourse.org/t/unable-to-delete-spammer/40885/8 "2016-03-16T20:19:35Z")

</div>

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