- @Override
- public boolean filterObject(Reply reply) {
- return ListNotificationFilters.isReplyVisible(currentSone, reply);
- }
-
- });
- }
- /* remove replies to unknown posts. */
- newReplies = Filters.filteredSet(newReplies, new Filter<Reply>() {
-
- @Override
- public boolean filterObject(Reply reply) {
- return (reply.getPost() != null) && (reply.getPost().getSone() != null);
- }
- });
- JsonArray jsonReplies = new JsonArray();
- for (Reply reply : newReplies) {
- JsonObject jsonReply = new JsonObject();
+ ArrayNode jsonReplies = new ArrayNode(instance);
+ for (PostReply reply : newReplies) {
+ ObjectNode jsonReply = new ObjectNode(instance);