Store and parse replies in/from inserted Sone.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 704c415..229ac42 100644 (file)
@@ -3,6 +3,7 @@
 
        <id><% currentSone.id></id>
        <name><% currentSone.name|xml></name>
+       <time><% currentSone.time></time>
 
        <profile>
                <first-name><% currentSone.profile.firstName|xml></first-name>
                <%/foreach>
        </replies>
 
-       <friends>
-               <%foreach currentSone.friends friend>
-               <friend>
-                       <sone-id><% friend.id|xml></sone-id>
-                       <sone-key><% friend.requestUri|xml></sone-key>
-                       <sone-name><% friend.name|xml></sone-name>
-               </friend>
+       <post-likes>
+               <%foreach currentSone.likedPostIds postId>
+               <post-like><% postId|xml></post-like>
                <%/foreach>
-       </friends>
+       </post-likes>
+
+       <reply-likes>
+               <%foreach currentSone.likedReplyIds replyId>
+               <reply-like><% replyId|xml></reply-like>
+               <%/foreach>
+       </reply-likes>
 
        <known-sones>
                <%foreach knownSones sone>