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
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,6 @@ class Formatter ...@@ -42,6 +42,6 @@ class Formatter
end end
def mention_html(match, account) 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
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment