From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 20:58:35 +0000 (+0100) Subject: Don’t notify for replies on posts we don’t have. X-Git-Tag: 0.3-RC1~55 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=a405a19ef1019095db939751f02d0c398931b71a Don’t notify for replies on posts we don’t have. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 115e0c3..2f3f575 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -382,6 +382,9 @@ public class WebInterface implements CoreListener { */ @Override public void newReplyFound(Reply reply) { + if (reply.getPost().getSone() == null) { + return; + } newReplyNotification.addReply(reply); notificationManager.addNotification(newReplyNotification); }