X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finsert%2Fsone.xml;h=9d29d6b81e70d3df8e0a7fec26942a6823ed6fec;hb=2ef163831826acdb2113f04278d90fa0a60d3f8e;hp=782eccd4ef3c9cddae9a6d925daab492dd3aaaae;hpb=90c85f39570270b879e2d3020fe95231410f57c6;p=Sone.git diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml index 782eccd..9d29d6b 100644 --- a/src/main/resources/templates/insert/sone.xml +++ b/src/main/resources/templates/insert/sone.xml @@ -1,9 +1,13 @@ - <% currentSone.id> - <% currentSone.name|xml> + 0 + + + Sone + <% version|xml> + <% currentSone.profile.firstName|xml> @@ -12,12 +16,22 @@ <% currentSone.profile.birthDay|xml> <% currentSone.profile.birthMonth|xml> <% currentSone.profile.birthYear|xml> + <%currentSone.profile.avatar|xml> + + <%foreach currentSone.profile.fields field> + + <% field.name|xml> + <% field.value|xml> + + <%/foreach> + <%foreach currentSone.posts post> - <% post.id|xml> + <% post.internalId|xml> + <%if post.recipientId.present><% post.recipientId.get|xml><%/if> <% post.text|xml> @@ -27,8 +41,8 @@ <%foreach currentSone.replies reply> - <% reply.id> - <% reply.post.id|xml> + <% reply.internalId> + <% reply.postId|xml> <% reply.text|xml> @@ -47,14 +61,39 @@ <%/foreach> - - <%foreach knownSones sone> - - <% sone.id|xml> - <% sone.requestUri|xml> - <% sone.name|xml> - - <%/foreach> - + <%foreach currentSone.albums album> + <%first> + + <%/first> + + <%album.internalId|xml> + <%if !album.parent.root> + <%album.parent.internalId|xml> + <%/if> + <%album.title|xml> + <%album.description|xml> + <%album.albumImage.internalId|xml> + <%foreach album.images image> + <%first> + + <%/first> + + <%image.internalId|xml> + <%image.creationTime|xml> + <%image.key|xml> + <%image.title|xml> + <%image.description|xml> + <%image.width|xml> + <%image.height|xml> + + <%last> + + <%/last> + <%/foreach> + + <%last> + + <%/last> + <%/foreach>