diff options
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r-- | app/lib/formatter.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 2d35a07bc..62047e4bd 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -219,6 +219,11 @@ class Formatter html = "#{html.strip}<p class=\"signature\">— #{footer}</p>" end + unless status.tags.blank? + tags = encode_and_link_urls(status.tags.pluck(:name).sort.map{ |t| "##{t}" }.join(' ')) + html = "#{html}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>" + end + html.html_safe # rubocop:disable Rails/OutputSafety end |