kopia lustrzana https://github.com/friendica/friendica
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.pull/2678/head
rodzic
3cd2ed54eb
commit
d98ab84d76
|
@ -1,8 +1,6 @@
|
||||||
|
{{* used in include/api.php 'api_statuses_friends' and 'api_statuses_followers' *}}
|
||||||
<!-- TEMPLATE APPEARS UNUSED -->
|
|
||||||
|
|
||||||
<users type="array">
|
<users type="array">
|
||||||
{{foreach $users as $u}}
|
{{foreach $users as $u}}
|
||||||
{{include file="api_user_xml.tpl" user=$u}}
|
<user>{{include file="api_user_xml.tpl" user=$u}}</user>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</users>
|
</users>
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||||
<geo>{{$status.geo}}</geo>
|
<geo>{{$status.geo}}</geo>
|
||||||
<favorited>{{$status.favorited}}</favorited>
|
<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>
|
<statusnet:conversation_id>{{$status.statusnet_conversation_id}}</statusnet:conversation_id>
|
||||||
<url>{{$status.url}}</url>
|
<url>{{$status.url}}</url>
|
||||||
<coordinates>{{$status.coordinates}}</coordinates>
|
<coordinates>{{$status.coordinates}}</coordinates>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
{{* includer template MUST provide root element *}}
|
||||||
|
|
||||||
<user>
|
|
||||||
<id>{{$user.id}}</id>
|
<id>{{$user.id}}</id>
|
||||||
<name>{{$user.name}}</name>
|
<name>{{$user.name}}</name>
|
||||||
<screen_name>{{$user.screen_name}}</screen_name>
|
<screen_name>{{$user.screen_name}}</screen_name>
|
||||||
|
@ -44,4 +44,4 @@
|
||||||
<place>{{$user.status.place}}</place>
|
<place>{{$user.status.place}}</place>
|
||||||
<contributors>{{$user.status.contributors}}</contributors>
|
<contributors>{{$user.status.contributors}}</contributors>
|
||||||
{{/if}}</status>
|
{{/if}}</status>
|
||||||
</user>
|
|
||||||
|
|
Ładowanie…
Reference in New Issue