Skip to content

Commit

Permalink
feat(StatusDisplayItem): do not hide self-quoted posts
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Aug 3, 2024
1 parent dbef984 commit b7e0596
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -449,7 +450,8 @@ public void onSuccess(List<Relationship> 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;
Expand Down

0 comments on commit b7e0596

Please sign in to comment.