]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #122 - Add microformats-2 classes to mention links
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 10 Nov 2016 00:19:04 +0000 (01:19 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 10 Nov 2016 00:19:33 +0000 (01:19 +0100)
app/lib/formatter.rb
app/views/accounts/show.html.haml

index d7b1006495bd5c9a637ea34c24bc9af3697bb71d..3a6ba97c89c4c59b2e16898acca72effab3864c3 100644 (file)
@@ -66,6 +66,6 @@ class Formatter
   end
 
   def mention_html(match, account)
-    "#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"mention\">@<span>#{account.username}</span></a>"
+    "#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"h-card u-url p-nickname mention\">@<span>#{account.username}</span></a>"
   end
 end
index b11a59513f6763c7e4701be91602e98ef32653c6..563b4384959895c80eaeca3dbcaf7bd97dfab851 100644 (file)
@@ -12,6 +12,6 @@
     = render partial: 'nothing_here'
 - else
   .activity-stream
-    = render partial: 'stream_entries/status', collection: @statuses, as: :status, cached: true
+    = render partial: 'stream_entries/status', collection: @statuses, as: :status
 
 = will_paginate @statuses, pagination_options