Groups: When banning user, remove all posts by that user from the group
Summary
When banning user, remove all posts by that user from the group
Steps to reproduce
(How one can reproduce the issue - this is very important)
Platform information
(Browser, device, system stats, screen size)
What is the current bug behavior?
- Given UserA is an admin of a group,
- and UserA uses the "Ban permanently" option to remove UserB from the group,
- when UserB is banned permanently,
- then all of UserB's posts within the group are still present,
- and all of UserB's posts are uneditable by UserB.
What is the expected correct behavior?
- ...when UserB is banned permanently,
- then all of userB's posts within the group are deleted.
Relevant logs and/or screenshots
-
Create a new EventStream event for group 'kick' action -
Create a new EventStream subscription that listens to 'kick' action and cleans up users posts
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Bashy