Browse Source

fix rss enclosure length (#11889)

pull/4/head
tsia 2 years ago
committed by Eugen Rochko
parent
commit
5ded2de3a0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/serializers/rss/account_serializer.rb
  2. +1
    -1
      app/serializers/rss/tag_serializer.rb

+ 1
- 1
app/serializers/rss/account_serializer.rb View File

@ -25,7 +25,7 @@ class RSS::AccountSerializer
.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)
item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, media.file.size)
end
end
end

+ 1
- 1
app/serializers/rss/tag_serializer.rb View File

@ -23,7 +23,7 @@ class RSS::TagSerializer
.description(status.spoiler_text.presence || Formatter.instance.format(status).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)
item.enclosure(full_asset_url(media.file.url(:original, false)), media.file.content_type, media.file.size)
end
end
end

Loading…
Cancel
Save