Remove PostReplyProvider methods from Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index ed39b71..a72dcd5 100644 (file)
@@ -940,7 +940,7 @@ public class WebInterface {
                localReplyNotification.remove(reply);
                if (!getMentionedSones(reply.getText()).isEmpty() && reply.getPost().isPresent()) {
                        boolean isMentioned = false;
-                       for (PostReply existingReply : getCore().getReplies(reply.getPostId())) {
+                       for (PostReply existingReply : reply.getPost().transform(Post.TO_REPLIES).get()) {
                                isMentioned |= !reply.isKnown() && !getMentionedSones(existingReply.getText()).isEmpty();
                        }
                        if (!isMentioned) {