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:
parent
7d5e2dda78
commit
636db1f54f
3 changed files with 6 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue