mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 13:23:13 +00:00
Fix newlines in OStatus and RSS serializations (#10183)
This commit is contained in:
parent
b5f119cfaf
commit
efd0fb8088
|
@ -20,7 +20,7 @@ class Formatter
|
||||||
raw_content = status.text
|
raw_content = status.text
|
||||||
|
|
||||||
if options[:inline_poll_options] && status.poll
|
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
|
end
|
||||||
|
|
||||||
return '' if raw_content.blank?
|
return '' if raw_content.blank?
|
||||||
|
|
Loading…
Reference in a new issue