Use unique IDs for replies, too
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 10e57eb..9d29d6b 100644 (file)
@@ -30,7 +30,7 @@
        <posts>
                <%foreach currentSone.posts post>
                <post>
-                       <id><% post.id|xml></id>
+                       <id><% post.internalId|xml></id>
                        <recipient><%if post.recipientId.present><% post.recipientId.get|xml><%/if></recipient>
                        <time><% post.time></time>
                        <text><% post.text|xml></text>
@@ -41,7 +41,7 @@
        <replies>
                <%foreach currentSone.replies reply>
                <reply>
-                       <id><% reply.id></id>
+                       <id><% reply.internalId></id>
                        <post-id><% reply.postId|xml></post-id>
                        <time><% reply.time></time>
                        <text><% reply.text|xml></text>