X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=fa6f52c61fbe89dfdeae32ce637681f87014acb5;hp=3eb1ac38b2ce8814a10add3a7721a7012fb3e13c;hb=8c9af9db3c7092d1164b944a405e0b055bc57ca3;hpb=d1e544ed3eb9d821b67b2d076ea56c83d5576eb4 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); }