From: David ‘Bombe’ Roden Date: Tue, 13 Sep 2011 09:20:28 +0000 (+0200) Subject: Only add mention notification if post of reply is downloaded. X-Git-Tag: 0.7^2~8 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=8c9af9db3c7092d1164b944a405e0b055bc57ca3 Only add mention notification if post of reply is downloaded. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 3eb1ac3..fa6f52c 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -772,7 +772,7 @@ public class WebInterface implements CoreListener { } if (!hasFirstStartNotification()) { notificationManager.addNotification(isLocal ? localReplyNotification : newReplyNotification); - if (!getMentionedSones(reply.getText()).isEmpty() && !isLocal) { + if (!getMentionedSones(reply.getText()).isEmpty() && !isLocal && (reply.getPost().getSone() != null)) { mentionNotification.add(reply.getPost()); notificationManager.addNotification(mentionNotification); }