this["options"] = currentSone?.options?.toJsonOptions() ?: jsonObject {}
this["notificationHash"] = webInterface.getNotifications(currentSone).sortedBy { it.createdTime }.hashCode()
this["sones"] = request.httpRequest.getParam("soneIds").split(',').mapNotNull(core::getSone).plus(currentSone).filterNotNull().toJsonSones()
- this["newPosts"] = newElements.newPosts.toJsonPosts()
- this["newReplies"] = newElements.newReplies.toJsonReplies()
+ this["newPosts"] = newElements.newPosts().toJsonPosts()
+ this["newReplies"] = newElements.newReplies().toJsonReplies()
this["linkedElements"] = request.httpRequest.getParam("elements", "[]").asJson().map(JsonNode::asText).map(elementLoader::loadElement).toJsonElements()
}
}