From a502beddd4dee5354c0955ea1436d4e49f5488f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 8 Apr 2011 17:18:28 +0200 Subject: [PATCH] =?utf8?q?Get=20=E2=80=9CincludeReplies=E2=80=9D=20paramet?= =?utf8?q?er=20from=20simple=20field=20set.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } } -- 2.7.4