fix regex filter not affecting spoilertext

This commit is contained in:
Conny Duck 2018-07-05 21:59:38 +02:00
parent c452b8f281
commit ef9e931428

View file

@ -869,7 +869,7 @@ public class TimelineFragment extends SFragment implements
if ((status.getInReplyToId() != null && filterRemoveReplies)
|| (status.getReblog() != null && filterRemoveReblogs)
|| (filterRemoveRegex && (filterRemoveRegexMatcher.reset(status.getContent()).find()
|| (!status.getSpoilerText().isEmpty() && filterRemoveRegexMatcher.reset(status.getContent()).find())))) {
|| (!status.getSpoilerText().isEmpty() && filterRemoveRegexMatcher.reset(status.getSpoilerText()).find())))) {
it.remove();
}
}