From: David ‘Bombe’ Roden Date: Fri, 8 Apr 2011 15:18:28 +0000 (+0200) Subject: Get “includeReplies” parameter from simple field set. X-Git-Tag: 0.6.5^2~39^2~24 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a502beddd4dee5354c0955ea1436d4e49f5488f6;p=Sone.git Get “includeReplies” parameter from simple field set. --- diff --git a/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java b/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java index 3955db9..391694f 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java @@ -46,7 +46,9 @@ public class GetPostCommand extends AbstractSoneCommand { @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(encodePost(post, "Post.", includeReplies)); } }