diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-17 01:34:30 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-17 01:34:46 -0500 |
commit | efcd176d581d682225e745c9d9342973d04c23bb (patch) | |
tree | f93f17659a5ed0a8186cdf2cb44ce4511caa2970 /app | |
parent | 5e3a120120720e42759960e246caea6928571ffb (diff) |
don't include parent components of scoped tags in folded tag list
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/formatter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>" end |