Change album ID to be unique, add internal ID
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 14cb8a4..747ad51 100644 (file)
@@ -42,7 +42,7 @@
                <%foreach currentSone.replies reply>
                <reply>
                        <id><% reply.id></id>
-                       <post-id><% reply.post.id|xml></post-id>
+                       <post-id><% reply.postId|xml></post-id>
                        <time><% reply.time></time>
                        <text><% reply.text|xml></text>
                </reply>
@@ -66,9 +66,9 @@
        <albums>
                <%/first>
                <album>
-                       <id><%album.id|xml></id>
-                       <%ifnull !album.parent>
-                       <parent><%album.parent.id|xml></parent>
+                       <id><%album.internalId|xml></id>
+                       <%if !album.parent.root>
+                       <parent><%album.parent.internalId|xml></parent>
                        <%/if>
                        <title><%album.title|xml></title>
                        <description><%album.description|xml></description>