From: Eugen Rochko Date: Sat, 10 Sep 2016 07:57:41 +0000 (+0200) Subject: Shorten mentions to only usernames X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=33ad2e5423cc477f346dd461d12ca93ffa786639;p=mastodon.git Shorten mentions to only usernames --- 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}@#{account.acct}" + "#{match.split('@').first}@#{account.username}" end end