* @param core
* The Sone core
*/
- protected GetPostCommand(Core core) {
+ public GetPostCommand(Core core) {
super(core);
}
@Override
public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException {
Post post = getPost(parameters, "Post");
- return new Response(encodePost(post, "Post.", true));
+ boolean includeReplies = getBoolean(parameters, "IncludeReplies", true);
+
+ return new Response("Post", encodePost(post, "Post.", includeReplies));
}
}