1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-02-05 21:23:26 +01:00

regex filter check also spoiler text of content warning

This commit is contained in:
tateisu 2018-05-19 06:58:33 +09:00
parent 46d90ff353
commit 33561361dc
2 changed files with 3 additions and 1 deletions

View File

@ -1156,6 +1156,8 @@ class Column(
if(column_regex_filter(status.decoded_content)) return true
if(column_regex_filter(status.reblog?.decoded_content)) return true
if(column_regex_filter(status.decoded_spoiler_text)) return true
if(column_regex_filter(status.reblog?.decoded_spoiler_text)) return true
return status.checkMuted(muted_app, muted_word)

View File

@ -296,7 +296,7 @@ class TootStatus(parser : TootParser, src : JSONObject) :
get() = id
val busyKey : String
get() = hostAccessOrOriginal + ":" + idAccessOrOriginal
get() = "$hostAccessOrOriginal:$idAccessOrOriginal"
fun checkMuted(muted_app : HashSet<String>?, muted_word : WordTrieTree?) : Boolean {