fix regex filter not affecting spoilertext

This commit is contained in:
Conny Duck 2018-07-05 21:59:38 +02:00
parent 07f53c358d
commit 45a5acbc15

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();
}
}