0
0
Fork 0

When serializing polls over OStatus, serialize poll options to text (#10160)

* When serializing polls over OStatus, serialize poll options to text

* Do the same for RSS feeds

* Use “[ ] ” as a prefix for poll options instead of “- ”
This commit is contained in:
ThibG 2019-03-05 21:09:18 +01:00 committed by Eugen Rochko
parent 7d5e2dda78
commit 636db1f54f
3 changed files with 6 additions and 2 deletions

View file

@ -19,6 +19,10 @@ 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')
end
return '' if raw_content.blank?
unless status.local?