mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Shorten mentions to only usernames
This commit is contained in:
parent
d6b3113304
commit
33ad2e5423
@ -42,6 +42,6 @@ class Formatter
|
||||
end
|
||||
|
||||
def mention_html(match, account)
|
||||
"#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"mention\">@<span>#{account.acct}</span></a>"
|
||||
"#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"mention\">@<span>#{account.username}</span></a>"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user