Remove PostProvider methods from Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / fcp / AbstractSoneCommand.java
index 9be30fc..19c1979 100644 (file)
@@ -186,7 +186,7 @@ public abstract class AbstractSoneCommand extends AbstractCommand {
        protected Post getPost(SimpleFieldSet simpleFieldSet, String parameterName) throws FcpException {
                try {
                        String postId = simpleFieldSet.getString(parameterName);
-                       Optional<Post> post = core.getPost(postId);
+                       Optional<Post> post = core.getDatabase().getPost(postId);
                        if (!post.isPresent()) {
                                throw new FcpException("Could not load post from “" + postId + "”.");
                        }