Merge pull request #549 from FineFindus/feat/reblog-mention

feat(Compose): exclude own account from reblog mentions
This commit is contained in:
LucasGGamerM
2025-03-11 10:17:10 -03:00
committed by GitHub

View File

@@ -787,7 +787,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
String ownID=AccountSessionManager.getInstance().getAccount(accountID).self.id; String ownID=AccountSessionManager.getInstance().getAccount(accountID).self.id;
if(!status.account.id.equals(ownID)) if(!status.account.id.equals(ownID))
mentions.add('@'+status.account.acct); 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); mentions.add('@'+status.rebloggedBy.acct);
for(Mention mention:status.mentions){ for(Mention mention:status.mentions){
if(mention.id.equals(ownID)) if(mention.id.equals(ownID))