When notifications were added, notifications of moderation actions were mixed in with notifications of post and comment replies. Since the notifications page only shows the most recent 50 notifications, this means that a user who is engaged in active discussions may never see a notification that one of their posts has been deleted by a mod.
Change future notifications about post deletion and restoration, sub bans, and sub moderation invitations into private messages in the user's inbox. When config.site.enable_modmail is turned on, these messages will have a reply button which will create a reply to the sub moderators' group inbox. If the moderation action was made by an admin who is not a mod of the sub in question, the reply will be sent to the mods of the sub named by the new config option config.site.admin_sub unless that is unset, in which case the reply will be sent to the mods of the sub in which the moderation action was made.
Add a message notification for comment deletion and restoration.
This PR depends on and includes the changes in #499.
Edit: added the word "future" above. Pre-existing notifications of mod actions will remain on the notifications page.
When notifications were added, notifications of moderation actions were mixed in with notifications of post and comment replies. Since the notifications page only shows the most recent 50 notifications, this means that a user who is engaged in active discussions may never see a notification that one of their posts has been deleted by a mod.
Change future notifications about post deletion and restoration, sub bans, and sub moderation invitations into private messages in the user's inbox. When
config.site.enable_modmail
is turned on, these messages will have a reply button which will create a reply to the sub moderators' group inbox. If the moderation action was made by an admin who is not a mod of the sub in question, the reply will be sent to the mods of the sub named by the new config optionconfig.site.admin_sub
unless that is unset, in which case the reply will be sent to the mods of the sub in which the moderation action was made.Add a message notification for comment deletion and restoration.
This PR depends on and includes the changes in #499.
Edit: added the word "future" above. Pre-existing notifications of mod actions will remain on the notifications page.