Merge branch 'feature/filter-home-timeline' into fork

This commit is contained in:
sk 2022-11-09 10:34:47 +01:00
commit f4b1629a1d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class HomeTimelineFragment extends StatusListFragment{
private List<Status> filterPosts(List<Status> items) { private List<Status> filterPosts(List<Status> items) {
return items.stream().filter(i -> return items.stream().filter(i ->
(GlobalUserPreferences.showReplies || i.inReplyToId == null) && (GlobalUserPreferences.showReplies || i.inReplyToId == null) &&
(GlobalUserPreferences.showBoosts || i.reblog == null) (GlobalUserPreferences.showBoosts || i.reblog == null)
).collect(Collectors.toList()); ).collect(Collectors.toList());
} }