# Flag action messages sent out where they shouldn't be

**URL:** https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536
**Category:** Bug
**Created:** [11월 21, 2017, 6:44오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536 "2017-11-21T18:44:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)
#### Post date: [11월 21, 2017, 6:44오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/1 "2017-11-21T18:44:10Z")

</div>

The problem is kind of hard to describe, so I’ll get right to the repro steps in hopes that it will explain what’s going on:

Have user0 send a message to user1 about their post through the flagging button.  
Have user2 flag the post by user1.  
Agree with the flag and hide the post.

User0 will in the message they sent to user1 receive a

> Thanks for letting us know. We agree there is an issue and we’re looking into it.

from the moderator who agreed with the flag.

This also happens if you delete the post from the topic page, only then User0 will see

> Thanks for letting us know. We agree there is an issue and we’ve removed the post.

---

<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월 21, 2017, 7:03오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/2 "2017-11-21T19:03:28Z")

</div>

I can reproduce the issue on try. The PM sent from the flag queue ends up in the same PM as the message from user0.

---

<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월 21, 2017, 9:05오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/3 "2017-11-21T21:05:10Z")

</div>

Hmm is this a new bug related to recent flagging work @eviltrout?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [11월 21, 2017, 9:29오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/4 "2017-11-21T21:29:50Z")

</div>

probably select related I will check @eviltrout

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [11월 21, 2017, 9:50오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/5 "2017-11-21T21:50:46Z")

</div>

Let me know if the bug isn’t in select.

---

<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: [7월 9, 2018, 8:42오전 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/7 "2018-07-09T08:42:51Z")

</div>

Did this get fixed @j.jaffeux?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [7월 9, 2018, 11:15오전 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/8 "2018-07-09T11:15:11Z")

</div>

It’s still here, I can confirm it’s not select-kit. I think I tried it months ago, but not sure I gave the msg to robin. Anyways, I can try to fix it this week, don’t know much about our flagging code server side, good opportunity.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 18, 2018, 9:19오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/10 "2018-07-18T21:19:03Z")

</div>

@maja fixed it

[https://github.com/discourse/discourse/pull/6100](https://github.com/discourse/discourse/pull/6100)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 19, 2018, 4:00오후 UTC](https://meta.discourse.org/t/flag-action-messages-sent-out-where-they-shouldnt-be/74536/11 "2018-07-19T16:00:02Z")

</div>

This topic was automatically closed after 18 hours. New replies are no longer allowed.
