Remove blocking, blacklisting, and distribution of known Sones.
[Sone.git] / src / main / resources / templates / insert / sone.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <id><% currentSone.id></id>
5         <name><% currentSone.name|xml></name>
6         <time><% currentSone.time></time>
7
8         <profile>
9                 <first-name><% currentSone.profile.firstName|xml></first-name>
10                 <middle-name><% currentSone.profile.middleName|xml></middle-name>
11                 <last-name><% currentSone.profile.lastName|xml></last-name>
12                 <birth-day><% currentSone.profile.birthDay|xml></birth-day>
13                 <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
14                 <birth-year><% currentSone.profile.birthYear|xml></birth-year>
15         </profile>
16
17         <posts>
18                 <%foreach currentSone.posts post>
19                 <post>
20                         <id><% post.id|xml></id>
21                         <time><% post.time></time>
22                         <text><% post.text|xml></text>
23                 </post>
24                 <%/foreach>
25         </posts>
26
27         <replies>
28                 <%foreach currentSone.replies reply>
29                 <reply>
30                         <id><% reply.id></id>
31                         <post-id><% reply.post.id|xml></post-id>
32                         <time><% reply.time></time>
33                         <text><% reply.text|xml></text>
34                 </reply>
35                 <%/foreach>
36         </replies>
37
38         <post-likes>
39                 <%foreach currentSone.likedPostIds postId>
40                 <post-like><% postId|xml></post-like>
41                 <%/foreach>
42         </post-likes>
43
44         <reply-likes>
45                 <%foreach currentSone.likedReplyIds replyId>
46                 <reply-like><% replyId|xml></reply-like>
47                 <%/foreach>
48         </reply-likes>
49
50 </sone>