diff options
author | ThibG <thib@sitedethib.com> | 2019-03-05 21:09:18 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-05 21:09:18 +0100 |
commit | 636db1f54fbd1690d083276b18f980cc5a51bcf0 (patch) | |
tree | d67c7c32e511ae307485bcbe6e3fc5da284db950 /app/serializers | |
parent | 7d5e2dda78414316f9cf09fcf6096d6a158da312 (diff) |
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 “- ”
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/rss/account_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rss/account_serializer.rb b/app/serializers/rss/account_serializer.rb index bde360a41..712b1347a 100644 --- a/app/serializers/rss/account_serializer.rb +++ b/app/serializers/rss/account_serializer.rb @@ -22,7 +22,7 @@ class RSS::AccountSerializer item.title(status.title) .link(TagManager.instance.url_for(status)) .pub_date(status.created_at) - .description(status.spoiler_text.presence || Formatter.instance.format(status).to_str) + .description(status.spoiler_text.presence || Formatter.instance.format(status, inline_poll_options: true).to_str) status.media_attachments.each do |media| item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, length: media.file.size) |