Merge commit '0.3.1' into message-recipient
[Sone.git] / src / main / resources / templates / insert / sone.xml
index b947dc4..4e8cbae 100644 (file)
@@ -3,6 +3,11 @@
 
        <time><% currentSone.time></time>
 
+       <client>
+               <name>Sone</name>
+               <version><% version|xml></version>
+       </client>
+
        <profile>
                <first-name><% currentSone.profile.firstName|xml></first-name>
                <middle-name><% currentSone.profile.middleName|xml></middle-name>
@@ -16,6 +21,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>