Don’t notify for replies on posts we don’t have.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 20:58:35 +0000 (21:58 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 14 Nov 2010 20:58:35 +0000 (21:58 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 115e0c3..2f3f575 100644 (file)
@@ -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);
        }