projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update French translation
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
GetPostCommand.java
diff --git
a/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java
b/src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java
index
3955db9
..
c503f5b
100644
(file)
--- 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
–2013
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
*
* 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
*/
* @param core
* The Sone core
*/
- p
rotected
GetPostCommand(Core core) {
+ p
ublic
GetPostCommand(Core core) {
super(core);
}
super(core);
}
@@
-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");
@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));
}
}
}
}