A user should be able to be reported more than once by various users
Hi,
Lately I have been exploring the AbuseReport model and the related code, and I noticed an interesting behavior - it's not possible to report a user more than once as abuser.
As you know, an AbuseReport can be created from issues, merge requests, notes and from the profile of a user. So it's possible to say there can be multiple abuses by the same user, that can be reported by other multiple users.
For example a user may be using an offensive language in an issue, while spamming in a merge request - should be able to be reported multiple times by different users.
On the other hand, the current behavior is confusing for users. Imagine, when a user tries to report another user and gets 'already reported' message while he/she didn't reported that user before - simply because someone else has already reported the abusing user.
- Additionally, the User model designed as 'has_one :abuse_report' as a result of the same assumption.
I suggest modifying the code for fixing this issue. I also created an MR related to this issue.
Best regards.