From 3ff2871b271b25961c70dff6586f76deedade3d3 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 20 Jul 2019 09:33:32 -0500 Subject: [PATCH] add newlines before signature & tags for vanilladon compat --- app/lib/formatter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 7623f0acd..590846acb 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -235,13 +235,13 @@ class Formatter footer = status.footer footer = encode_and_link_urls(footer) footer = encode_custom_emojis(footer, status.emojis, options[:autoplay]) if options[:custom_emojify] - html = "#{html.strip}

— #{footer}

" + html = "#{html.strip}\n

— #{footer}

" end unless status.tags.blank? tags = status.tags.pluck(:name).reject { |t| t.end_with?('.') }.map{ |t| "##{t}" } tags = encode_and_link_urls(tags.join(' ')) - html = "#{html}

#{tags} \xf0\x9f\x8f\xb7

" + html = "#{html.strip}\n

#{tags} \xf0\x9f\x8f\xb7

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