about summary refs log tree commit diff
path: root/app/serializers/rss
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-05 21:09:18 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-05 21:09:18 +0100
commit636db1f54fbd1690d083276b18f980cc5a51bcf0 (patch)
treed67c7c32e511ae307485bcbe6e3fc5da284db950 /app/serializers/rss
parent7d5e2dda78414316f9cf09fcf6096d6a158da312 (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/rss')
-rw-r--r--app/serializers/rss/account_serializer.rb2
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)