avoid checking filter cache twice

master
multiple creatures 2020-01-10 20:19:29 -06:00
parent 1268277a8c
commit 0a52e51d00
1 changed files with 2 additions and 2 deletions

View File

@ -42,9 +42,9 @@ class StatusFilter
# filtered by user?
if account.user.filters_enabled && !account.user.filter_timelines_only
if account.user.invert_filters
return true unless phrase_filtered?(status, account.id)
return true unless phrase_filtered?(status, account.id, skip_redis: true)
else
return true if phrase_filtered?(status, account.id)
return true if phrase_filtered?(status, account.id, skip_redis: true)
end
end