Store username instead of nice name.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 5f72f18..c2d67ca 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <sone>
 
+       <id><% currentSone.id></id>
        <name><% currentSone.name|html></name>
 
        <profile>
@@ -9,4 +10,38 @@
                <last-name><% currentSone.profile.lastName|html></last-name>
        </profile>
 
+       <posts>
+               <%foreach currentSone.posts 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.name|html></sone-name>
+               </friend>
+               <%/foreach>
+       </friends>
+
 </sone>