Skip to content
Snippets Groups Projects
Commit 33ad2e54 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Shorten mentions to only usernames

parent d6b31133
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment