Phuks-co / throat

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

Add a configuration option for modmail #421

Closed happy-river closed 2 years ago

happy-river commented 2 years ago

Add a new option to the admin Site Configuration page to enable or disable moderator mail, defaulting to disabled. This option enables a "Contact the Mods" button on the sidebar of each sub, and a modal on the profile page of users who moderate subs, which gives people wanting to send a message to a mod the choice of sending a moderator mail or a normal private message. It also turns on or off inclusion of moderator mail counts in the moderation notification count for moderators.

Include a few bug fixes for notifications, where sent or deleted messages would not be immediately reflected on the menu icons, and where the moderator report counts could cancel out the moderator mail counts.

The page that Contact the Mods links to, and the pages which moderators use to read and reply to moderator mail, are not implemented here. For an implementation using a separate server which shares the Throat database (Postgres only), see https://gitlab.com/happyriver/throat-reframed.