From efcd176d581d682225e745c9d9342973d04c23bb Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 17 Jul 2019 01:34:30 -0500 Subject: [PATCH] don't include parent components of scoped tags in folded tag list --- app/lib/formatter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index f859a2705..97fc3f4bb 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -239,7 +239,8 @@ class Formatter end unless status.tags.blank? - tags = encode_and_link_urls(status.tags.pluck(:name).sort.map{ |t| "##{t}" }.join(' ')) + tags = status.tags.pluck(:name).reject { |t| t.end_with?('.') }.map{ |t| "##{t}" } + tags = encode_and_link_urls(tags.join(' ')) html = "#{html}
\xf0\x9f\x8f\xb7

#{tags}

" end