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
This commit is contained in:
FineFindus 2024-09-23 18:44:40 +02:00
parent d81eb6ad0a
commit bd6f739842
No known key found for this signature in database
GPG key ID: 64873EE210FF8E6B

View file

@ -787,7 +787,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
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))