[openstreetmap/openstreetmap-website] Move SPAMMY_PHRASES to the database (Issue #6510)
Pablo Brasero
notifications at github.com
Mon Nov 10 15:05:10 UTC 2025
pablobm created an issue (openstreetmap/openstreetmap-website#6510)
### Problem
User profiles are a vector for spam in the website. Some instances are caught using a hard-coded list of "spammy phrases" that can be found at [`lib/rich_text.rb`](https://github.com/openstreetmap/openstreetmap-website/blob/b715c12a0aae54631addfff1b93600e0337df3d3/lib/rich_text.rb#L4).
Being hard-coded, this list is difficult to manage. See https://github.com/openstreetmap/openstreetmap-website/pull/6044
### Description
Move the list of spammy phrases to the database. For the moment don't include an UI. Admins can add/remove with SQL manually. An UI will be added separately.
### Screenshots
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6510
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6510 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251110/0da4c6b1/attachment.htm>
More information about the rails-dev
mailing list