]> cat aescling's git repositories - mastodon.git/commitdiff
Include <id> (identical value to <uri>) on person-type objects in Atom
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 17 Oct 2016 13:36:37 +0000 (15:36 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 17 Oct 2016 13:36:37 +0000 (15:36 +0200)
This might help with GS compatibility

app/helpers/atom_builder_helper.rb

index 8ec77d7cab12d37d0b0eb9ce6e3d70c04cbcd033..c7131074de7ad4b503903a6e65370adbb3795cec 100644 (file)
@@ -158,11 +158,12 @@ module AtomBuilderHelper
 
     if stream_entry.targeted?
       target(xml) do
+        simple_id xml, TagManager.instance.uri_for(stream_entry.target)
+
         if stream_entry.target.object_type == :person
           include_author xml, stream_entry.target
         else
           object_type    xml, stream_entry.target.object_type
-          simple_id      xml, TagManager.instance.uri_for(stream_entry.target)
           title          xml, stream_entry.target.title
           link_alternate xml, TagManager.instance.url_for(stream_entry.target)
         end