X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finsert%2Fsone.xml;h=3d456d4a3e7277c3ae206d6c8fa03e68ae23bd24;hp=27b9c201b3f6ea72e945a53eba9aaea6f6806bf4;hb=afdb3c077f9f762f85be2656015609179eff8510;hpb=01e8cfe1d7cf5ff68428964441d6c77731adb6bd diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml index 27b9c20..3d456d4 100644 --- a/src/main/resources/templates/insert/sone.xml +++ b/src/main/resources/templates/insert/sone.xml @@ -1,20 +1,37 @@ - <% currentSone.id> - <% currentSone.name|xml> + 0 + + + Sone + <% version|xml> + <% currentSone.profile.firstName|xml> <% currentSone.profile.middleName|xml> <% currentSone.profile.lastName|xml> + <% 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> + <%if post.recipientId.present><% post.recipientId.get|xml><%/if> <% post.text|xml> @@ -25,21 +42,58 @@ <%foreach currentSone.replies reply> <% reply.id> - <% reply.post.id|xml> + <% reply.postId|xml> <% reply.text|xml> <%/foreach> - - <%foreach knownSones sone> - - <% sone.id|xml> - <% sone.requestUri|xml> - <% sone.name|xml> - + + <%foreach currentSone.likedPostIds postId> + <% postId|xml> + <%/foreach> + + + + <%foreach currentSone.likedReplyIds replyId> + <% replyId|xml> <%/foreach> - + + + <%foreach currentSone.albums album> + <%first> + + <%/first> + + <%album.id|xml> + <%if !album.parent.root> + <%album.parent.id|xml> + <%/if> + <%album.title|xml> + <%album.description|xml> + <%album.albumImage.id|xml> + <%foreach album.images image> + <%first> + + <%/first> + + <%image.id|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>