Flagged, hidden content is sent in email notifications for subsequent replies


(Bill Ayakatubby) #1

Just as the title says. I received an email notification about a reply to one of my posts. A flagged post—which had appeared between my post and the reply, and the content of which was hidden—was included in the email:


(Jeff Atwood) #2

In this case, not just a flag, but a post that reached the flagging threshold. It was eventually deleted altogether but probably not in time?

We should definitely check for hidden state of post before including it in emails. I don’t think we send deleted posts but we should verify that as well.


(Sam Saffron) #3

Fixed, even with tests to make sure it stays fixed:

https://github.com/discourse/discourse/commit/51c06dea0398e829c85bb3a0b6f489527c42e1b9


(Sam Saffron) #4

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