From bd6f739842f6ba145fb670d19366e7bcf7ac3a14 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Mon, 23 Sep 2024 18:44:40 +0200 Subject: [PATCH] feat(Compose): exclude own account from reblog mentions Excludes the users account from being automatically included when repplying to a status that has been bosted by the user. Fixes https://github.com/LucasGGamerM/moshidon/issues/548 --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 0c87e48e99..7544080e23 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -787,7 +787,7 @@ public void getOutline(View view, Outline outline){ String ownID=AccountSessionManager.getInstance().getAccount(accountID).self.id; if(!status.account.id.equals(ownID)) mentions.add('@'+status.account.acct); - if(status.rebloggedBy != null && GlobalUserPreferences.mentionRebloggerAutomatically) + if(GlobalUserPreferences.mentionRebloggerAutomatically && status.rebloggedBy != null && !status.rebloggedBy.id.equals(ownID)) mentions.add('@'+status.rebloggedBy.acct); for(Mention mention:status.mentions){ if(mention.id.equals(ownID))