X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostCommand.java;h=e15d7d671b8e3b50b434461b4021dae3ee88a788;hb=26dbc1f7ba2c4243d8cc07986b0e943a2238ea08;hp=391694f0f0df022425ca121118227fc1b719e101;hpb=a502beddd4dee5354c0955ea1436d4e49f5488f6;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java b/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java index 391694f..e15d7d6 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java @@ -1,5 +1,5 @@ /* - * Sone - GetPostCommand.java - Copyright © 2011 David Roden + * Sone - GetPostCommand.java - Copyright © 2011–2012 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,7 +36,7 @@ public class GetPostCommand extends AbstractSoneCommand { * @param core * The Sone core */ - protected GetPostCommand(Core core) { + public GetPostCommand(Core core) { super(core); } @@ -48,7 +48,7 @@ public class GetPostCommand extends AbstractSoneCommand { Post post = getPost(parameters, "Post"); boolean includeReplies = getBoolean(parameters, "IncludeReplies", true); - return new Response(encodePost(post, "Post.", includeReplies)); + return new Response("Post", encodePost(post, "Post.", includeReplies)); } }