commit: 33ad2e5423cc477f346dd461d12ca93ffa786639
parent: d6b31133047188b275d6b0232abdfeea66ed8688
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 10 Sep 2016 09:57:41 +0200
Shorten mentions to only usernames
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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