From b7e05960140ce9e07260b467134afe018aa8f9b8 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sat, 3 Aug 2024 11:22:40 +0200 Subject: [PATCH] feat(StatusDisplayItem): do not hide self-quoted posts --- .../android/ui/displayitems/StatusDisplayItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index 838668765d..d9c311754c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -20,6 +20,7 @@ import org.joinmastodon.android.api.requests.accounts.GetAccountRelationships; import org.joinmastodon.android.api.requests.search.GetSearchResults; import org.joinmastodon.android.api.session.AccountLocalPreferences; +import org.joinmastodon.android.api.session.AccountSession; import org.joinmastodon.android.api.session.AccountSessionManager; import org.joinmastodon.android.fragments.BaseStatusListFragment; import org.joinmastodon.android.fragments.HashtagTimelineFragment; @@ -449,7 +450,8 @@ public void onSuccess(List relationships){ return; Relationship relationship=relationships.get(0); - if(relationship.domainBlocking || relationship.muting || relationship.blocking) { + String selfId=AccountSessionManager.get(accountID).self.id; + if(!status.account.id.equals(selfId) && (relationship.domainBlocking || relationship.muting || relationship.blocking)) { // do not show posts that are quoting a muted/blocked user fragment.removeStatus(status); return;