Commit efd0fb80 authored by ThibG's avatar ThibG Committed by Eugen Rochko

Fix newlines in OStatus and RSS serializations (#10183)

parent b5f119cf
......@@ -20,7 +20,7 @@ class Formatter
raw_content = status.text
if options[:inline_poll_options] && status.poll
raw_content = raw_content + '\n\n' + status.poll.options.map { |title| "[ ] #{title}" }.join('\n')
raw_content = raw_content + "\n\n" + status.poll.options.map { |title| "[ ] #{title}" }.join("\n")
end
return '' if raw_content.blank?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment