From 9a2f0131c6cddef3ef0e7faa73070945f0d4f452 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 15 Jul 2019 13:44:47 -0500 Subject: tag folding --- app/lib/formatter.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/lib') 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}

— #{footer}

" end + unless status.tags.blank? + tags = encode_and_link_urls(status.tags.pluck(:name).sort.map{ |t| "##{t}" }.join(' ')) + html = "#{html}
\xf0\x9f\x8f\xb7

#{tags}

" + end + html.html_safe # rubocop:disable Rails/OutputSafety end -- cgit