diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-10 09:57:41 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-10 09:57:41 +0200 |
commit | 33ad2e5423cc477f346dd461d12ca93ffa786639 (patch) | |
tree | 7729173b4448f53952713587b90a01d312f22caa /app | |
parent | d6b31133047188b275d6b0232abdfeea66ed8688 (diff) |
Shorten mentions to only usernames
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 52e229520..a71cdd760 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -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 |