API: update template for friendica:owner data
api_user_xml.tpl lost his root element. Includer templates must provide it. This allow to use same data structure under different root tag.
This commit is contained in:
parent
3cd2ed54eb
commit
d98ab84d76
3 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,6 @@
|
|||
|
||||
<!-- TEMPLATE APPEARS UNUSED -->
|
||||
|
||||
{{* used in include/api.php 'api_statuses_friends' and 'api_statuses_followers' *}}
|
||||
<users type="array">
|
||||
{{foreach $users as $u}}
|
||||
{{include file="api_user_xml.tpl" user=$u}}
|
||||
<user>{{include file="api_user_xml.tpl" user=$u}}</user>
|
||||
{{/foreach}}
|
||||
</users>
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$status.geo}}</geo>
|
||||
<favorited>{{$status.favorited}}</favorited>
|
||||
{{include file="api_user_xml.tpl" user=$status.user}} <statusnet:html>{{$status.statusnet_html}}</statusnet:html>
|
||||
<user>{{include file="api_user_xml.tpl" user=$status.user}}</user>
|
||||
<friendica:owner>{{include file="api_user_xml.tpl" user=$status.friendica_owner}}</friendica:owner>
|
||||
<statusnet:html>{{$status.statusnet_html}}</statusnet:html>
|
||||
<statusnet:conversation_id>{{$status.statusnet_conversation_id}}</statusnet:conversation_id>
|
||||
<url>{{$status.url}}</url>
|
||||
<coordinates>{{$status.coordinates}}</coordinates>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{* includer template MUST provide root element *}}
|
||||
|
||||
<user>
|
||||
<id>{{$user.id}}</id>
|
||||
<name>{{$user.name}}</name>
|
||||
<screen_name>{{$user.screen_name}}</screen_name>
|
||||
|
@ -44,4 +44,4 @@
|
|||
<place>{{$user.status.place}}</place>
|
||||
<contributors>{{$user.status.contributors}}</contributors>
|
||||
{{/if}}</status>
|
||||
</user>
|
||||
|
||||
|
|
Loading…
Reference in a new issue