diff options
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r-- | app/lib/formatter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index d8d5424fd..1ec77e56d 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -2,6 +2,7 @@ require 'singleton' class Formatter include Singleton + include RoutingHelper include ActionView::Helpers::TextHelper include ActionView::Helpers::SanitizeHelper @@ -52,7 +53,7 @@ class Formatter def hashtag_html(match) prefix, affix = match.split('#') - "#{prefix}<a href=\"#\" class=\"mention hashtag\">#<span>#{affix}</span></a>" + "#{prefix}<a href=\"#{tag_url(affix.downcase)}\" class=\"mention hashtag\">#<span>#{affix}</span></a>" end def mention_html(match, account) |