diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java index ec8cf7e6..ddd427fa 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java @@ -143,7 +143,7 @@ public abstract class StatusListFragment extends BaseStatusListFragment{ protected void onRemoveAccountPostsEvent(RemoveAccountPostsEvent ev){ List toRemove=Stream.concat(data.stream(), preloadedData.stream()) - .filter(s->s.account.id.equals(ev.postsByAccountID) || (s.reblog!=null && s.reblog.account.id.equals(ev.postsByAccountID))) + .filter(s->s.account.id.equals(ev.postsByAccountID) || (!ev.isUnfollow && s.reblog!=null && s.reblog.account.id.equals(ev.postsByAccountID))) .collect(Collectors.toList()); for(Status s:toRemove){ removeStatus(s);