projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don’t insert friends anymore.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
insert
/
sone.xml
diff --git
a/src/main/resources/templates/insert/sone.xml
b/src/main/resources/templates/insert/sone.xml
index
e2446c0
..
27b9c20
100644
(file)
--- a/
src/main/resources/templates/insert/sone.xml
+++ b/
src/main/resources/templates/insert/sone.xml
@@
-2,20
+2,21
@@
<sone>
<id><% currentSone.id></id>
<sone>
<id><% currentSone.id></id>
- <name><% currentSone.name|html></name>
+ <name><% currentSone.name|xml></name>
+ <time><% currentSone.time></time>
<profile>
<profile>
- <first-name><% currentSone.profile.firstName|
ht
ml></first-name>
- <middle-name><% currentSone.profile.middleName|
ht
ml></middle-name>
- <last-name><% currentSone.profile.lastName|
ht
ml></last-name>
+ <first-name><% currentSone.profile.firstName|
x
ml></first-name>
+ <middle-name><% currentSone.profile.middleName|
x
ml></middle-name>
+ <last-name><% currentSone.profile.lastName|
x
ml></last-name>
</profile>
<posts>
<%foreach currentSone.posts post>
<post>
</profile>
<posts>
<%foreach currentSone.posts post>
<post>
- <id><% post.id></id>
+ <id><% post.id
|xml
></id>
<time><% post.time></time>
<time><% post.time></time>
- <text><% post.text|
ht
ml></text>
+ <text><% post.text|
x
ml></text>
</post>
<%/foreach>
</posts>
</post>
<%/foreach>
</posts>
@@
-24,29
+25,19
@@
<%foreach currentSone.replies reply>
<reply>
<id><% reply.id></id>
<%foreach currentSone.replies reply>
<reply>
<id><% reply.id></id>
- <post-id><% reply.post.id></post-id>
+ <post-id><% reply.post.id
|xml
></post-id>
<time><% reply.time></time>
<time><% reply.time></time>
- <text><% reply.text></text>
+ <text><% reply.text
|xml
></text>
</reply>
<%/foreach>
</replies>
</reply>
<%/foreach>
</replies>
- <friends>
- <%foreach currentSone.friends friend>
- <friend>
- <sone-id><% friend.id|html></sone-id>
- <sone-key><% friend.requestUri|html></sone-key>
- <sone-name><% friend.name|html></sone-name>
- </friend>
- <%/foreach>
- </friends>
-
<known-sones>
<%foreach knownSones sone>
<known-sone>
<known-sones>
<%foreach knownSones sone>
<known-sone>
- <sone-id><% sone.id|
ht
ml></sone-id>
- <sone-key><% sone.requestUri|
ht
ml></sone-key>
- <sone-name><% sone.name|
ht
ml></sone-name>
+ <sone-id><% sone.id|
x
ml></sone-id>
+ <sone-key><% sone.requestUri|
x
ml></sone-key>
+ <sone-name><% sone.name|
x
ml></sone-name>
</known-sone>
<%/foreach>
</known-sones>
</known-sone>
<%/foreach>
</known-sones>