Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Fix post undelete reason and links in notifications #381

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

On the user notification page, in the notification sent when a mod undeletes the user's post, instead of showing the reason a post was undeleted, it was showing the post content. Fixed that, and also removed the "reply" and "permalink" links for that notification type to make it match the deleted post notification.

I also removed the "block" link for post delete and undelete and sub ban and unban notifications because blocking PMs from a sub moderator because of a moderation action doesn't make sense, and was a way to access the mod's name even with config.site.anonymous_modding enabled.