comment, clean up
This commit is contained in:
parent
a5b4aeaa76
commit
a9e5dd645d
@ -74,10 +74,7 @@ public class StoredXssComments extends AssignmentEndpoint {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Collection<Comment> retrieveComments() {
|
public Collection<Comment> retrieveComments() {
|
||||||
Collection<Comment> allComments = Lists.newArrayList();
|
Collection<Comment> allComments = Lists.newArrayList();
|
||||||
Collection<Comment> xmlComments = userComments.get(webSession.getUserName());
|
// no filtering applied here at render
|
||||||
if (xmlComments != null) {
|
|
||||||
allComments.addAll(xmlComments);
|
|
||||||
}
|
|
||||||
allComments.addAll(comments);
|
allComments.addAll(comments);
|
||||||
return allComments;
|
return allComments;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user