SMF
SMF copied to clipboard
Delete quote & mention alerts if removed during edit
Partial for #7423
If a post is edited, & mentions or quotes are removed, delete any alerts for them. The logic to do this cleanup has been around, but it wasn't being invoked correctly. It works fine once it's invoked.
It needed to know approval status, because you don't want to generate alerts for unapproved posts. But for some reason, the approval status wasn't passed.
Also, it needed to explicitly check for removals. Previously it was just checking for the presence of quotes or mentions in the edited post... So... If they were deleted... It didn't know it had cleanup to do... 🙄