Merge branch 'next' into image-management
[Sone.git] / src / main / resources / templates / insert / sone.xml
index c80dbe7..1f12d90 100644 (file)
@@ -1,9 +1,13 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <sone>
 
-       <id><% currentSone.id></id>
-       <name><% currentSone.name|xml></name>
        <time><% currentSone.time></time>
+       <protocol-version>0</protocol-version>
+
+       <client>
+               <name>Sone</name>
+               <version><% version|xml></version>
+       </client>
 
        <profile>
                <first-name><% currentSone.profile.firstName|xml></first-name>
@@ -18,6 +22,7 @@
                <%foreach currentSone.posts post>
                <post>
                        <id><% post.id|xml></id>
+                       <recipient><%ifnull !post.recipient><% post.recipient.id|xml><%/if></recipient>
                        <time><% post.time></time>
                        <text><% post.text|xml></text>
                </post>
                <%/foreach>
        </reply-likes>
 
+       <albums>
+               <%foreach currentSone.albums album>
+               <%include insert/include/album.xml>
+               <%/foreach>
+       </albums>
+
 </sone>