0
0
Fork 0

Fixing atom feeds for accounts, adding tests that would catch such bugs in future

This commit is contained in:
Eugen Rochko 2016-09-08 00:33:07 +02:00
parent 499beb4484
commit 87576e1ab1
9 changed files with 41 additions and 7 deletions

View file

@ -126,7 +126,7 @@ module AtomBuilderHelper
end
def link_enclosure(xml, media)
xml.link(rel: 'enclosure', href: full_asset_url(media.file.url), type: media.file_content_type, length: media.file_size)
xml.link(rel: 'enclosure', href: full_asset_url(media.file.url), type: media.file_content_type, length: media.file_file_size)
end
def link_avatar(xml, account)