mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -05:00
Fix filters in notifications
This commit is contained in:
parent
1a14dd8c3b
commit
53a0938f7b
@ -174,6 +174,8 @@ def toot_matches_filters(toot, filters=[]):
|
||||
phrases = [maybe_rewrite_filter(x) for x in filters]
|
||||
pattern = "|".join(phrases)
|
||||
try:
|
||||
if toot.get('type') in ['reblog', 'favourite']:
|
||||
return re.search(pattern, toot.status.spoiler_text + toot.status.content, re.I)
|
||||
return re.search(pattern, toot.spoiler_text + toot.content, re.I)
|
||||
except:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user