Change schema to store xml directly to db
[friends.git] / friends / templates / feed.xml
CommitLineData
ddf4123d 1<?xml version="1.0" encoding="UTF-8"?>
511b6ecb 2<feed xmlns:activity='http://activitystrea.ms/spec/1.0/' xmlns='http://www.w3.org/2005/Atom' xmlns:poco="http://portablecontacts.net/spec/1.0"><link rel='hub' href='{{hub_url}}'/><link rel='self' href='{{feed_url}}' type="application/atom+xml"/>
ddf4123d
MF
3 <author>
4 <uri>{{feed_url}}</uri>
5 <name>{{user}}</name>
6 <object-type xmlns='http://activitystrea.ms/spec/1.0/'>http://activitystrea.ms/schema/1.0/person</object-type>
511b6ecb 7 <poco:preferredUsername>{{user}}</poco:preferredUsername>
ddf4123d
MF
8 </author>
9 <title>{{user}}'s tidslinje</title>
10 <id>{{feed_url}}</id>
11 <updated>{{arrow.now().isoformat()}}</updated>
12 {% for entry in entries %}
6fd5e534
MF
13 {{entry['text']}}
14 {# <entry>
ddf4123d
MF
15 <id>tag:frykholm.com,2016:{{entry['id']}}</id>
16 <title>titeln</title>
17 <updated>{{arrow.get(entry['ts']).isoformat()}}</updated>
ca027dea
MF
18 <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
19 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
ddf4123d
MF
20 <content type="html" >
21 {{entry['text']}}
22 </content>
23 <activity:object-type>
24 http://activitystrea.ms/schema/1.0/article
25 </activity:object-type>
6fd5e534 26 </entry> #}
ddf4123d
MF
27 {% end %}
28
29</feed>