Don’t notify for replies on posts we don’t have.
[Sone.git] / 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);
        }