# User's unedited post sent by email even when post edited by admin after approval

**URL:** https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260
**Category:** Bug
**Created:** [August 30, 2023, 8:16pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260 "2023-08-30T20:16:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [August 30, 2023, 8:16pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/1 "2023-08-30T20:16:32Z")

</div>

Continuing the discussion from [Moderated posts and `email time window mins`](https://meta.discourse.org/t/moderated-posts-and-email-time-window-mins/240635/3):

> [@Moderated posts and \`email time window mins\`](https://meta.discourse.org/t/moderated-posts-and-email-time-window-mins/240635/3):
>
> > [@Moderated posts and \`email time window mins\`](https://meta.discourse.org/t/moderated-posts-and-email-time-window-mins/240635/1):
> >
> > When does `email time window mins` begin for a post that is approved after moderation?
> > 
> > Is it the time it is approved?
> 
> The `email time window mins` starts when the post approved.

I think this is happening:

1. Brand new user writes post.
2. Held for moderation/review.
3. Approved by admin.
4. Immediately (within a minute) edited by admin.
5. Delay of `email time window mins` after approval (in my case, 10 mins).
6. Notification email sent. This email contains the text of the original post (step 1 above) **not** the edited text (step 4 above).

What should happen is that at step 6 the edited text should be sent in the notification email.

Perhaps some setting on my forum is causing this, in which case it’s not a bug, and go ahead and recategorise this. A workaround could be to edit the post before approval, but that means the post’s edit history isn’t so easy to see.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 4, 2023, 11:00am UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/2 "2023-10-04T11:00:58Z")

</div>

I noticed this again today. I edited the title of the post just after approving it. 10 minutes later the email went out with the original, unedited title.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 4, 2023, 12:16pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/3 "2023-10-04T12:16:22Z")

</div>

I can repro it. 👍

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 4, 2023, 12:28pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/4 "2023-10-04T12:28:21Z")

</div>

> [@Jonathan5](#):
>
> Delay of `email time window mins` after approval (in my case, 10 mins).

Has this ever respected the approval time? The setting doesn’t mention approval specifically, and AFAIK if the post is older than 10 minutes the email always went out immediately once the post was approved.

> [@Jonathan5](#):
>
> A workaround could be to edit the post before approval, but that means the post’s edit history isn’t so easy to see.

I agree with this, but just for my own benefit - what’s the value of seeing the original state if it required admin intervention to publish?

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 4, 2023, 2:08pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/5 "2023-10-04T14:08:55Z")

</div>

> [@Stephen](#):
>
> Has this ever respected the approval time? The setting doesn’t mention approval specifically, and AFAIK if the post is older than 10 minutes the email always went out immediately once the post was approved.

In don’t entirely follow that. It is 10 minutes from approval, and not 10 minutes from submission, if that’s what you mean.

> [@Stephen](#):
>
> I agree with this, but just for my own benefit - what’s the value of seeing the original state if it required admin intervention to publish?

So that the forum administrator can see the post as originally submitted. This might be relevant if major changes were agreed with the poster. There could be other scenarios. I don’t know whether the original, unedited post is stored anywhere, but I don’t think it can be found on the admin web interface.

The main problem is different, which is that changes within the 10-minute period are ignored when the email goes out. These might be changes that only occurred to the forum administrator after approval.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 25, 2023, 10:14am UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/7 "2023-10-25T10:14:41Z")

</div>

I’ve just had another thought. The post is emailed with the title and text exactly as originally submitted (not as edited during the review/approval stage). Maybe also it will be emailed as if it is in the **category** as originally submitted, even if it is recategorised during review/approval.

If that is happening, it would mean that the wrong people are notified by email.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [November 23, 2023, 5:05pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/8 "2023-11-23T17:05:29Z")

</div>

I have the latest Discourse version and noticed today that the email sent contained the **edited** topic title 👍

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [November 28, 2023, 3:01pm UTC](https://meta.discourse.org/t/users-unedited-post-sent-by-email-even-when-post-edited-by-admin-after-approval/277260/9 "2023-11-28T15:01:53Z")

</div>

I don’t know what happened last time but today I’ve got the latest Discourse, allowed a post, edited the title immediately but the original topic title was sent by email.
