Add protocol version to inserted XML.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index b947dc4..7d3c8aa 100644 (file)
@@ -2,6 +2,12 @@
 <sone>
 
        <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>
@@ -16,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>