Commit 5ded2de3 authored by tsia's avatar tsia Committed by Eugen Rochko
Browse files

fix rss enclosure length (#11889)

parent d930eb88
...@@ -25,7 +25,7 @@ class RSS::AccountSerializer ...@@ -25,7 +25,7 @@ class RSS::AccountSerializer
.description(status.spoiler_text.presence || Formatter.instance.format(status, inline_poll_options: true).to_str) .description(status.spoiler_text.presence || Formatter.instance.format(status, inline_poll_options: true).to_str)
status.media_attachments.each do |media| status.media_attachments.each do |media|
item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, length: media.file.size) item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, media.file.size)
end end
end end
end end
......
...@@ -23,7 +23,7 @@ class RSS::TagSerializer ...@@ -23,7 +23,7 @@ class RSS::TagSerializer
.description(status.spoiler_text.presence || Formatter.instance.format(status).to_str) .description(status.spoiler_text.presence || Formatter.instance.format(status).to_str)
status.media_attachments.each do |media| status.media_attachments.each do |media|
item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, length: media.file.size) item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, media.file.size)
end end
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment