Skip to content

Commit

Permalink
fix rss enclosure length (mastodon#11889)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsia authored and hiyuki2578 committed Oct 2, 2019
1 parent c8280e8 commit e5f4ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/serializers/rss/account_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def render(account, statuses, tag)
.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
Expand Down
2 changes: 1 addition & 1 deletion app/serializers/rss/tag_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def render(tag, statuses)
.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
Expand Down

0 comments on commit e5f4ab0

Please sign in to comment.