Add friends to Sone.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 6818445..53ffabd 100644 (file)
 
        <posts>
                <%foreach currentSone.posts post>
-                       <post>
-                               <time><% post.time></time>
-                               <text><% post.text|html></text>
-                       </post>
+               <post>
+                       <id><% post.id></id>
+                       <time><% post.time></time>
+                       <text><% post.text|html></text>
+               </post>
                <%/foreach>
        </posts>
 
+       <replies>
+               <%foreach currentSone.replies reply>
+               <reply>
+                       <id><% reply.id></id>
+                       <sone-id><% reply.post.sone.requestUri|html></sone-id>
+                       <sone-key><% reply.post.sone.requestUri|html></sone-key>
+                       <sone-name><% reply.post.sone.niceName|html></sone-name>
+                       <post-id><% reply.post.id></post-id>
+                       <time><% reply.time></time>
+                       <text><% reply.text></text>
+               </reply>
+               <%/foreach>
+       </replies>
+
+       <friends>
+               <%foreach currentSone.friends friend>
+               <friend>
+                       <sone-id><% friend.id|html></sone-id>
+                       <sone-key><% friend.requestUri|html></sone-key>
+                       <sone-name><% friend.niceName|html></sone-name>
+               </friend>
+               <%/foreach>
+       </friends>
+
 </sone>