X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostsCommand.java;h=9cc131be2d3875c4b1c403593b3673a9959d23f0;hb=b4d2d68b5ea4f4edc7337f380cfe078756678126;hp=24362d9ec810741b54df361d93efb4384ccded3e;hpb=45208b1b2ce354f252ef5278bf165395c806c765;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/fcp/GetPostsCommand.java b/src/main/java/net/pterodactylus/sone/fcp/GetPostsCommand.java
index 24362d9..9cc131b 100644
--- a/src/main/java/net/pterodactylus/sone/fcp/GetPostsCommand.java
+++ b/src/main/java/net/pterodactylus/sone/fcp/GetPostsCommand.java
@@ -1,5 +1,5 @@
/*
- * Sone - GetPostsCommand.java - Copyright © 2011 David Roden
+ * Sone - GetPostsCommand.java - Copyright © 2011â2019 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
@@ -25,13 +25,10 @@ import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.Sone;
import net.pterodactylus.sone.freenet.fcp.FcpException;
import freenet.support.SimpleFieldSet;
-import freenet.support.api.Bucket;
/**
* Implements the âGetPostsâ FCP command that returns the list of posts a Sone
* made.
- *
- * @author David âBombeâ Roden
*/
public class GetPostsCommand extends AbstractSoneCommand {
@@ -49,8 +46,8 @@ public class GetPostsCommand extends AbstractSoneCommand {
* {@inheritDoc}
*/
@Override
- public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException {
- Sone sone = getSone(parameters, "Sone");
+ public Response execute(SimpleFieldSet parameters) throws FcpException {
+ Sone sone = getSone(parameters, "Sone", false);
int startPost = getInt(parameters, "StartPost", 0);
int maxPosts = getInt(parameters, "MaxPosts", -1);
List posts = sone.getPosts();