]> git.frykholm.com Git - friends.git/blobdiff - friends/templates/feed.xml
Change schema to store xml directly to db
[friends.git] / friends / templates / feed.xml
index 4308d1e0ca8c85cad50247921a5a3da9ab056ddf..eee839ab5ff6bc636629edf343879e0e7e9db9cd 100644 (file)
@@ -1,28 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<feed xmlns:activity='http://activitystrea.ms/spec/1.0/' xmlns='http://www.w3.org/2005/Atom'><link rel='hub' href='{{hub_url}}'/><link rel='self' href='{{user}}'/>
+<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"/>
   <author>
     <uri>{{feed_url}}</uri>
     <name>{{user}}</name>
     <object-type xmlns='http://activitystrea.ms/spec/1.0/'>http://activitystrea.ms/schema/1.0/person</object-type>
+    <poco:preferredUsername>{{user}}</poco:preferredUsername>
   </author>
   <title>{{user}}'s tidslinje</title>
   <id>{{feed_url}}</id>
  <updated>{{arrow.now().isoformat()}}</updated>
   {% for entry in entries %}
-  <entry>
+    {{entry['text']}}
+    {# <entry>
     <id>tag:frykholm.com,2016:{{entry['id']}}</id>
     <title>titeln</title>
     <updated>{{arrow.get(entry['ts']).isoformat()}}</updated>
-    <activity:verb>
-      http://activitystrea.ms/schema/1.0/post
-    </activity:verb>
+      <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
+         <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
     <content type="html" >
        {{entry['text']}}
     </content>
     <activity:object-type>
         http://activitystrea.ms/schema/1.0/article
     </activity:object-type>
-  </entry>
+  </entry> #}
   {% end %}
   
 </feed>