feat: add configurable max hashtag limit filter for spam prevention

Adds a security setting to hide posts with more than X hashtags (t tags),
defaulting to 5. Applied at the feed filter level via FilterByListParams.match()
and Account.isAcceptable() to cover all feeds. Configurable in Security Filters
settings, with 0 to disable.

https://claude.ai/code/session_01NMVypgGSU9EjQA7hZ9uvjD
This commit is contained in:
Claude
2026-04-03 12:34:32 +00:00
parent be6a6346ae
commit 2a24b711cd
11 changed files with 84 additions and 3 deletions
@@ -24,6 +24,8 @@ import com.vitorpamplona.quartz.nip01Core.core.Event
fun Event.anyHashTag(onEach: (str: String) -> Boolean) = tags.anyHashTag(onEach)
fun Event.countHashtags() = tags.countHashtags()
fun Event.hasHashtags() = tags.hasHashtags()
fun Event.hashtags() = tags.hashtags()