You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the users panel for admins there's an option to ban a user. Complete the implementation with tryanzu/anzu#7 specs.
It has to ask for a reason (simple select) and if "other" option is selected then ask details.
Special options could include the option to soft delete all user's posts or comments. (spam accounts)
The text was updated successfully, but these errors were encountered:
I don't know if the option should soft delete all user's posts or comments, why don't we create a middleware to check if posts/comments are from a banned user, and then, hide them.
I mean, what if you want to un-ban a user? and what if this user has deleted some of this own posts or comments, how are you going to differentiate them from the deleted because of the ban?
(I know this is a task for backend tho).
I think the label in frontend should be Also hide all posts and comments from this user.
I don't know if the option should soft delete all user's posts or comments, why don't we create a middleware to check if posts/comments are from a banned user, and then, hide them.
I mean, what if you want to un-ban a user? and what if this user has deleted some of this own posts or comments, how are you going to differentiate them from the deleted because of the ban?
(I know this is a task for backend tho).
I think the label in frontend should be Also hide all posts and comments from this user.
I kinda like the idea of having a runtime soft delete, my only concern would be how to handle large lists of softdeleted items without messing with pagination. Lets say you ban someone because he spammed, and he now has 100 comments in the last 10 posts, if you do the check in runtime the pagination would be broken because of the large lists of comments/posts. Maybe we could do another soft delete but with a special field to differentiate? banned_at for contents could be the soft delete field.
Other than the side effects I think I'm half way this issue, I already got the reasons lists from config, ban reasons duration, ban check middleware, you can check it out and help me out finish it here: tryanzu/anzu#16
Inside the users panel for admins there's an option to ban a user. Complete the implementation with tryanzu/anzu#7 specs.
It has to ask for a reason (simple select) and if "other" option is selected then ask details.
Special options could include the option to soft delete all user's posts or comments. (spam accounts)
The text was updated successfully, but these errors were encountered: