X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=ea1cb8330886f2b727894e21da5c6789c360d5fa;hb=61c23dc5c1244abc3efff879ee2d3a99c1acebba;hp=ed39b71614d864f3da251fe49412544cc9e8a709;hpb=bdedce9c2a3bf37b0c98ea7d96a4c08432013011;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index ed39b71..ea1cb83 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -862,7 +862,7 @@ public class WebInterface { notificationManager.addNotification(mentionNotification); } } else { - getCore().markReplyKnown(reply); + reply.modify().setKnown().update(getCore().postReplyUpdated()); } } @@ -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) {