]> cat aescling's git repositories - mastodon.git/commitdiff
Shorten mentions to only usernames
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Sep 2016 07:57:41 +0000 (09:57 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Sep 2016 07:57:41 +0000 (09:57 +0200)
app/lib/formatter.rb

index 52e2295208c51c7d1e806561581bc60f0594c231..a71cdd7607a80d16d8c727744ed0c4d91629a705 100644 (file)
@@ -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