about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-08 00:33:07 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-08 00:33:07 +0200
commit87576e1ab1a4c02f8847e8264e6a62abd36df793 (patch)
tree90f8902673de6e6fc87c5eda43fc4f5e354479c3 /app
parent499beb4484031703f029511787163e3a5bb6e47a (diff)
Fixing atom feeds for accounts, adding tests that would catch such bugs in future
Diffstat (limited to 'app')
-rw-r--r--app/helpers/atom_builder_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb
index ea54b9fdb..99b3414cd 100644
--- a/app/helpers/atom_builder_helper.rb
+++ b/app/helpers/atom_builder_helper.rb
@@ -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)