Don’t store Sone ID in the reply, it’s always the Sone being parsed!
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 948b29f..e2446c0 100644 (file)
@@ -24,7 +24,6 @@
                <%foreach currentSone.replies reply>
                <reply>
                        <id><% reply.id></id>
-                       <sone-id><% reply.post.sone.requestUri|html></sone-id>
                        <post-id><% reply.post.id></post-id>
                        <time><% reply.time></time>
                        <text><% reply.text></text>
                <%/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>
+
+       <known-sones>
+               <%foreach knownSones sone>
+               <known-sone>
+                       <sone-id><% sone.id|html></sone-id>
+                       <sone-key><% sone.requestUri|html></sone-key>
+                       <sone-name><% sone.name|html></sone-name>
+               </known-sone>
+               <%/foreach>
+       </known-sones>
+
 </sone>