discuitnet / discuit

A free and open-source community discussion platform.
https://discuit.net
GNU Affero General Public License v3.0
425 stars 51 forks source link

[Suggestion] Site-wide ban tweaks #125

Open reallytiredofclowns opened 3 months ago

reallytiredofclowns commented 3 months ago

It looks like a site-wide ban automatically logs out the user and they are then unable to log on.

When I've seen bans handed out like this on prod, the admins usually give a reason and ban duration (replying to the offending post or comment), if not permanent. If the user cannot log on, they can't access their notifications, and it's unlikely they'll read the post comments. I would therefore suggest restricting posting/commenting rights instead. Or, if DMs can be implemented quickly enough, to allow access to DMs while banned, so admins can explain the ban reasoning to the user.

previnder commented 3 months ago

Good idea. It was implemented that way because it was the simplest way to do it: just log out the user from all sessions and don't allow them log back in.

Kaamkiya commented 2 months ago

Also, redirecting them to /@<username> would work because it says "Account Suspended". So instead of being left wondering, or allowing them to log in, you could redirect them to the page that says that their account is banned.

Example of banned account page is https://discuit.net/@Spruce