# Discobot tutorial flagged as spam

**URL:** https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731
**Category:** Support
**Created:** [March 27, 2019, 4:58pm UTC](https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731 "2019-03-27T16:58:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [March 27, 2019, 4:58pm UTC](https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731/1 "2019-03-27T16:58:26Z")

</div>

I am administrator on [https://discourse.nixos.org/](https://discourse.nixos.org/) which is hosted for free by Discourse.

It looks like the system flagged someone’s Discobot tutorial posts:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/0/f051d36d9bea146057dcfa2a4fe990ee7e263421.png) This is a link to the private thread about that (maybe someone at Discourse support can look at it?) [https://discourse.nixos.org/t/greetings/2531](https://discourse.nixos.org/t/greetings/2531)

Is there something we have misconfigured about the spam flagging that would cause this?

Also, whenever there is a post flagged by the system, we have to process the flag and also the moderator inbox message. Is there a way to avoid having to do two things for every flag?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [March 28, 2019, 3:48am UTC](https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731/3 "2019-03-28T03:48:54Z")

</div>

Hi Ryan,

So, while I wasn’t able to fully reproduce this behavior, likely due to a spam-check job that runs at a certain time, here is what I believe happened:

- The site setting `newuser_spam_host_threshold` is defaulted to 3. The description of this setting is:

- At 9:41am the **System** user flagged 4 posts at once for the user in question. Each flag had the same message:

- The other two flags listed are from the discobot tutorial, but are referring to the naturally posted links (wikipedia and image) and have not met the threshold under this user.

- **Main Suspicion:** When a user breaks the spam host threshold, ALL posts (including PMs) where they have included links are included to make sure they are dealt with if they are confirmed a spammer.

So technically speaking, I _think_ it’s doing what was intended. It looks like you’ve configured `white_listed_spam_host_domains` with some common hosts, but if you keep getting false-positives, you could try raising the `newuser_spam_host_threshold` sightly and bring it back down if there are any issues.

Let me know if you need any more information.

---

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [March 28, 2019, 4:27am UTC](https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731/4 "2019-03-28T04:27:15Z")

</div>

Your main suspicion sounds correct to me. Thanks for pointing out those settings, I just discovered `white_listed_spam_host_domains` today, so setting that should help a lot!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 27, 2019, 4:27am UTC](https://meta.discourse.org/t/discobot-tutorial-flagged-as-spam/112731/5 "2019-04-27T04:27:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
