# Editting an assigned post re-sends the assigned mail

**URL:** https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261
**Category:** Bug
**Created:** [23.Октябрь.2018 12:29:13 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261 "2018-10-23T12:29:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [23.Октябрь.2018 12:29:13 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/1 "2018-10-23T12:29:13Z")

</div>

When having a post that’s assigned to user **X** , Discourse re-sends the user **Y** assigned post to you to user **X**. imo it shouldn’t resend that if it’s still assigned to the same person. (This is a post with @X in it)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23.Октябрь.2018 12:41:38 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/2 "2018-10-23T12:41:38Z")

</div>

What if the edit completely changes what the assignment is?

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [23.Октябрь.2018 12:52:32 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/3 "2018-10-23T12:52:32Z")

</div>

then a mail would be great of course.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23.Октябрь.2018 22:48:31 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/4 "2018-10-23T22:48:31Z")

</div>

You mean the automatic whisper post we insert in the stream? Curious why are you editing it?

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [24.Октябрь.2018 10:06:40 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/5 "2018-10-24T10:06:40Z")

</div>

No I mean a post like this one with @carlokok in it. On our forum that will automatically assign the post to me (which is great), but If I edit this post again, I get another “user assigned a post to you” notification for every time it gets edited.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26.Октябрь.2018 00:17:47 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/6 "2018-10-26T00:17:47Z")

</div>

@gerhard can you add this to your list, not urgent at all but we should clean it up (in theory if we edit this in 15 minutes you will get another notification)

In theory another notification fired

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [08.Январь.2019 16:44:29 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/7 "2019-01-08T16:44:29Z")

</div>

This should be fixed by [FIX: Do not assign the same user more than once · discourse/discourse-assign@a308e2a · GitHub](https://github.com/discourse/discourse-assign/commit/a308e2a44560affe3691e1998e1f72456d13f760)

Note: We already prevent duplicate assignments in the `AssignController`, but that doesn’t work for auto assign.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [10.Январь.2019 16:44:34 UTC](https://meta.discourse.org/t/editting-an-assigned-post-re-sends-the-assigned-mail/100261/8 "2019-01-10T16:44:34Z")

</div>

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