1
0
mirror of https://gitlab.gnome.org/World/tootle synced 2025-02-02 00:46:48 +01:00
This commit is contained in:
bleakgrey 2018-07-11 20:13:52 +03:00
parent 9bd0fe85ab
commit 56a70160d9

View File

@ -91,9 +91,13 @@ public class Tootle.Status {
result = "@%s ".printf (account.acct);
if (mentions != null) {
foreach (var mention in mentions)
if (mention.acct != accounts.current.acct)
foreach (var mention in mentions) {
var equals_current = mention.acct == accounts.current.acct;
var already_mentioned = mention.acct in result;
if (!equals_current && ! already_mentioned)
result += "@%s ".printf (mention.acct);
}
}
return result;