]> git.frykholm.com Git - friends.git/blobdiff - friends/templates/feed.xml
first hello world working
[friends.git] / friends / templates / feed.xml
index 4308d1e0ca8c85cad50247921a5a3da9ab056ddf..30851312c3ae5b296d5822b6457bbfdbf578978d 100644 (file)
@@ -1,9 +1,10 @@
 <?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>
@@ -13,9 +14,8 @@
     <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>