Browse Source

Include <id> (identical value to <uri>) on person-type objects in Atom

This might help with GS compatibility
pull/4/head
Eugen Rochko 6 years ago
parent
commit
6c05e3063a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/helpers/atom_builder_helper.rb

+ 2
- 1
app/helpers/atom_builder_helper.rb View 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

Loading…
Cancel
Save