aboutsummaryrefslogtreecommitdiffstats
path: root/view/api_timeline_rss.tpl
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-04-27 17:46:23 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-04-27 17:46:23 +0200
commit976d1eaf4312f8c45af0e16205f573afc5be5136 (patch)
tree055bc4cf39d1faa7a5d7afc2ccbf52688c7708e3 /view/api_timeline_rss.tpl
parent41f6ccc039633890b42f3a1a4495dfd8c7262da0 (diff)
downloadvolse-hubzilla-976d1eaf4312f8c45af0e16205f573afc5be5136.tar.gz
volse-hubzilla-976d1eaf4312f8c45af0e16205f573afc5be5136.tar.bz2
volse-hubzilla-976d1eaf4312f8c45af0e16205f573afc5be5136.zip
API work
Diffstat (limited to 'view/api_timeline_rss.tpl')
-rw-r--r--view/api_timeline_rss.tpl44
1 files changed, 21 insertions, 23 deletions
diff --git a/view/api_timeline_rss.tpl b/view/api_timeline_rss.tpl
index d07ac42ad..fbba93ee9 100644
--- a/view/api_timeline_rss.tpl
+++ b/view/api_timeline_rss.tpl
@@ -1,23 +1,21 @@
-<feed xml:lang="en-US" xmlns:georss="http://www.georss.org/georss" xmlns="http://www.w3.org/2005/Atom" xmlns:twitter="http://api.twitter.com">
- <title>Friendika</title>
- <id>tag:friendika:Status</id>
- <link type="text/html" rel="alternate" href="$rss.alternate"/>
- <link type="application/atom+xml" rel="self" href="$rss.self"/>
- <updated>$rss.updated</updated>
- <subtitle>Friendika timeline</subtitle>
- {{ for $statuses as $status }}
- <entry>
- <title>$status.text</title>
- <content type="html">$status.text</content>
- <id>$status.id</id>
- <published>$status.created_at</published>
- <updated>$status.created_at</updated>
- <link type="text/html" rel="alternate" href="$status.url"/>
- <author>
- <name>$status.user.name</name>
- <uri>$status.user.url</uri>
- </author>
- <twitter:source>$status.source</twitter:source>
- </entry>
- {{ endfor }}
-</feed> \ No newline at end of file
+<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:twitter="http://api.twitter.com">
+ <channel>
+ <title>Friendika</title>
+ <link>$rss.alternate</link>
+ <atom:link type="application/rss+xml" rel="self" href="$rss.self"/>
+ <description>Friendika timeline</description>
+ <language>$rss.language</language>
+ <ttl>40</ttl>
+
+{{ for $statuses as $status }}
+ <item>
+ <title>$status.text</title>
+ <description>$status.text</description>
+ <pubDate>$status.created_at</pubDate>
+ <guid>$status.url</guid>
+ <link>$status.url</link>
+ <twitter:source>$status.source</twitter:source>
+ </item>
+{{ endfor }}
+ </channel>
+</rss>