Remove possibility to create Sones from sone provider interface.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / MarkAsKnownPage.java
index d552b91..a923386 100644 (file)
@@ -65,19 +65,19 @@ public class MarkAsKnownPage extends SoneTemplatePage {
                for (StringTokenizer idTokenizer = new StringTokenizer(ids); idTokenizer.hasMoreTokens();) {
                        String id = idTokenizer.nextToken();
                        if (type.equals("post")) {
-                               Post post = webInterface.getCore().getPost(id, false);
+                               Post post = webInterface.getCore().getPost(id);
                                if (post == null) {
                                        continue;
                                }
                                webInterface.getCore().markPostKnown(post);
                        } else if (type.equals("reply")) {
-                               PostReply reply = webInterface.getCore().getPostReply(id, false);
+                               PostReply reply = webInterface.getCore().getPostReply(id);
                                if (reply == null) {
                                        continue;
                                }
                                webInterface.getCore().markReplyKnown(reply);
                        } else if (type.equals("sone")) {
-                               Sone sone = webInterface.getCore().getSone(id, false);
+                               Sone sone = webInterface.getCore().getSone(id);
                                if (sone == null) {
                                        continue;
                                }