Remove method to mark replies as known from the core.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / MarkAsKnownAjaxPage.java
index cb5940c..fb602db 100644 (file)
@@ -61,11 +61,11 @@ public class MarkAsKnownAjaxPage extends JsonPage {
                                }
                                core.markPostKnown(post.get());
                        } else if (type.equals("reply")) {
-                               Optional<PostReply> reply = core.getPostReply(id);
+                               Optional<PostReply> reply = core.getDatabase().getPostReply(id);
                                if (!reply.isPresent()) {
                                        continue;
                                }
-                               core.markReplyKnown(reply.get());
+                               reply.get().modify().setKnown().update(webInterface.getCore().postReplyUpdated());
                        } else if (type.equals("sone")) {
                                Optional<Sone> sone = core.getSone(id);
                                if (!sone.isPresent()) {