about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-17 15:36:37 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-17 15:36:37 +0200
commit6c05e3063a4cd2eccb20baad8897649fdb860217 (patch)
treeaddbcda333cccd70f2d69d902a91ea07b6e47052 /app/helpers
parenta782e3b39d2e979f1b246a058fb45c75b9a10141 (diff)
Include <id> (identical value to <uri>) on person-type objects in Atom
This might help with GS compatibility
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/atom_builder_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb
index 8ec77d7ca..c7131074d 100644
--- a/app/helpers/atom_builder_helper.rb
+++ b/app/helpers/atom_builder_helper.rb
@@ -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