mirror of
https://gitlab.gnome.org/World/tootle
synced 2025-02-08 15:48:41 +01:00
Fix #63
This commit is contained in:
parent
9bd0fe85ab
commit
56a70160d9
@ -91,9 +91,13 @@ public class Tootle.Status {
|
|||||||
result = "@%s ".printf (account.acct);
|
result = "@%s ".printf (account.acct);
|
||||||
|
|
||||||
if (mentions != null) {
|
if (mentions != null) {
|
||||||
foreach (var mention in mentions)
|
foreach (var mention in mentions) {
|
||||||
if (mention.acct != accounts.current.acct)
|
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);
|
result += "@%s ".printf (mention.acct);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user