Allow multiple abusive comments by the same user to be reported to admin
Problem to solve
Multiple abusive comments by the same user cannot be reported to admin. This makes it difficult to identify repeat offenders or weight the severity of an offense.
Intended users
Developers, administrators
User experience goal
Prior abuse reports for a given abusive user should not prevent other users from reporting that abusive user, either for the same comment or for subsequent abusive comments.
Reporting an abusive user who has already been reported should not be treated as user error on the part of the reporting user, as currently:
![](/-/project/278964/uploads/74dc3525ea42d2e94a3916cddbf46e28/Screen_Shot_2020-08-12_at_12.10.09_PM.png)
Administrators should be able to easily see when a user has a history of abusive comments.
Proposal
Basic implementation:
- change
has_one :abuse_report
relation inUser
model tohas_many
- remove user uniqueness check in
AbuseReport
model - add an Abuse Reports tab to the User view
- adjust specs etc. accordingly
Further refinements might include:
- directly linking abuse reports to comments, and incrementing a counter for each abuse report rather than creating an additional abuse report record for each report
- grouping abuse reports by the same user, or abuse reports for the same comment, in the admin abuse reports view
Edited by David Moles