]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #20, reblogs in Atom should be formatted correctly now
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 22 Mar 2016 08:03:03 +0000 (09:03 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 22 Mar 2016 08:03:03 +0000 (09:03 +0100)
app/helpers/atom_builder_helper.rb

index b9eb79fbd938dbdd17246d25e3e1fb1c843b42c9..132ea15738dba1f3f33ee7a361da723f349a8364 100644 (file)
@@ -190,9 +190,13 @@ module AtomBuilderHelper
           link_avatar      xml, stream_entry.target
         end
 
-        # Statuses have content
+        # Statuses have content and author
         if [:note, :comment].include? stream_entry.target.object_type
           content xml, conditionally_formatted(stream_entry.target)
+
+          author(xml) do
+            include_author xml, stream_entry.target.account
+          end
         end
       end
     end