Skip to content

AO3-7253 Improve work over-reporting limit#5737

Open
EchoEkhi wants to merge 2 commits intootwcode:masterfrom
EchoEkhi:AO3-7253
Open

AO3-7253 Improve work over-reporting limit#5737
EchoEkhi wants to merge 2 commits intootwcode:masterfrom
EchoEkhi:AO3-7253

Conversation

@EchoEkhi
Copy link
Copy Markdown
Contributor

@EchoEkhi EchoEkhi commented Apr 15, 2026

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7253

Purpose

  • Refactor the abuse report over-reporting limit checks
  • Add a reportable association to abuse reports for rate-limited resources
  • Fix issues when compound URLs like /works/123/comments/456 prevent /work/123 from being reported
  • Remove the url LIKE "%...%" linear scan lookups
  • Prevent reports for items that don't exist

Deploy notes

rake db:migrate
rake After:set_reportable

Credit

EchoEkhi (He/Him)

@github-actions github-actions bot added Has Migrations Contains migrations and therefore needs special attention when deploying Awaiting Review labels Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting Review Has Migrations Contains migrations and therefore needs special attention when deploying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant