Use unique IDs for replies, too
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 3d456d4..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>
        <albums>
                <%/first>
                <album>
-                       <id><%album.id|xml></id>
+                       <id><%album.internalId|xml></id>
                        <%if !album.parent.root>
-                       <parent><%album.parent.id|xml></parent>
+                       <parent><%album.parent.internalId|xml></parent>
                        <%/if>
                        <title><%album.title|xml></title>
                        <description><%album.description|xml></description>
-                       <album-image><%album.albumImage.id|xml></album-image>
+                       <album-image><%album.albumImage.internalId|xml></album-image>
                        <%foreach album.images image>
                        <%first>
                        <images>
                                <%/first>
                                <image>
-                                       <id><%image.id|xml></id>
+                                       <id><%image.internalId|xml></id>
                                        <creation-time><%image.creationTime|xml></creation-time>
                                        <key><%image.key|xml></key>
                                        <title><%image.title|xml></title>