From 3becad1468b51a67b850ba74ed92b00198ef202f Mon Sep 17 00:00:00 2001 From: sk Date: Fri, 6 May 2022 21:18:48 +0200 Subject: [PATCH] fix created posts being added to pinned --- .../joinmastodon/android/fragments/AccountTimelineFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java index fe1c004cd..ea9abbdd1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java @@ -78,6 +78,7 @@ public class AccountTimelineFragment extends StatusListFragment{ protected void onStatusCreated(StatusCreatedEvent ev){ if(!AccountSessionManager.getInstance().isSelf(accountID, ev.status.account)) return; + if(filter==GetAccountStatuses.Filter.PINNED) return; if(filter==GetAccountStatuses.Filter.DEFAULT){ // Keep replies to self, discard all other replies if(ev.status.inReplyToAccountId!=null && !ev.status.inReplyToAccountId.equals(AccountSessionManager.getInstance().getAccount(accountID).self.id))