]> git.mxchange.org Git - friendica.git/blob - view/templates/api_timeline_atom.tpl
Merge remote-tracking branch 'upstream/master'
[friendica.git] / view / templates / api_timeline_atom.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
7  <generator uri="http://status.net" version="0.9.7">StatusNet</generator>
8  <id>{{$rss.self}}</id>
9  <title>Friendica</title>
10  <subtitle>Friendica API feed</subtitle>
11  <logo>{{$rss.logo}}</logo>
12  <updated>{{$rss.atom_updated}}</updated>
13  <link type="text/html" rel="alternate" href="{{$rss.alternate}}"/>
14  <link type="application/atom+xml" rel="self" href="{{$rss.self}}"/>
15  
16  
17  <author>
18         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
19         <uri>{{$user.url}}</uri>
20         <name>{{$user.name}}</name>
21         <link rel="alternate" type="text/html" href="{{$user.url}}"/>
22         <link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
23         <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
24         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
25         <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
26         <georss:point></georss:point>
27         <poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
28         <poco:displayName>{{$user.name}}</poco:displayName>
29         <poco:urls>
30                 <poco:type>homepage</poco:type>
31                 <poco:value>{{$user.url}}</poco:value>
32                 <poco:primary>true</poco:primary>
33         </poco:urls>
34         <statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
35  </author>
36
37  <!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
38  <activity:subject>
39         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
40         <id>{{$user.contact_url}}</id>
41         <title>{{$user.name}}</title>
42         <link rel="alternate" type="text/html" href="{{$user.url}}"/>
43         <link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
44         <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
45         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
46         <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
47         <poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
48         <poco:displayName>{{$user.name}}</poco:displayName>
49         <poco:urls>
50                 <poco:type>homepage</poco:type>
51                 <poco:value>{{$user.url}}</poco:value>
52                 <poco:primary>true</poco:primary>
53         </poco:urls>
54         <statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
55  </activity:subject>
56  
57  
58         {{foreach $statuses as $status}}
59         <entry>
60                 <activity:object-type>{{$status.objecttype}}</activity:object-type>
61                 <id>{{$status.message_id}}</id>
62                 <title>{{$status.text}}</title>
63                 <content type="html">{{$status.statusnet_html}}</content>
64                 <link rel="alternate" type="text/html" href="{{$status.url}}"/>
65                 <activity:verb>{{$status.verb}}</activity:verb>
66                 <published>{{$status.published}}</published>
67                 <updated>{{$status.updated}}</updated>
68
69                 <link rel="self" type="application/atom+xml" href="{{$status.self}}"/>
70                 <link rel="edit" type="application/atom+xml" href="{{$status.edit}}"/>
71                 <statusnet:notice_info local_id="{{$status.id}}" source="{{$status.source}}" >
72                 </statusnet:notice_info>
73
74                 <author>
75                         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
76                         <uri>{{$status.user.url}}</uri>
77                         <name>{{$status.user.name}}</name>
78                         <link rel="alternate" type="text/html" href="{{$status.user.url}}"/>
79                         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$status.user.profile_image_url}}"/>
80
81                         <georss:point/>
82                         <poco:preferredUsername>{{$status.user.screen_name}}</poco:preferredUsername>
83                         <poco:displayName>{{$status.user.name}}</poco:displayName>
84                         <poco:address/>
85                         <poco:urls>
86                                 <poco:type>homepage</poco:type>
87                                 <poco:value>{{$status.user.url}}</poco:value>
88                                 <poco:primary>true</poco:primary>
89                         </poco:urls>
90                 </author>
91                 <link rel="ostatus:conversation" type="text/html" href="{{$status.url}}"/> 
92
93         </entry>    
94     {{/foreach}}
95 </feed>