Skip to content
Snippets Groups Projects
Commit 6c05e306 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

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

This might help with GS compatibility
parent a782e3b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment