don't include parent components of scoped tags in folded tag list

staging
multiple creatures 2019-07-17 01:34:30 -05:00
parent 5e3a120120
commit efcd176d58
1 changed files with 2 additions and 1 deletions

View File

@ -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}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>"
end