From: David ‘Bombe’ Roden Date: Wed, 8 Jun 2011 13:49:57 +0000 (+0200) Subject: Add mention notification to notification manager. X-Git-Tag: 0.6.5^2~9^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8908979c7d8edf18c629c0d38f4a6078b639ca6b;p=Sone.git Add mention notification to notification manager. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 1e04105..8eb0122 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -727,6 +727,7 @@ public class WebInterface implements CoreListener { notificationManager.addNotification(newPostNotification); if (!getMentionedSones(post.getText()).isEmpty()) { mentionNotification.add(post); + notificationManager.addNotification(mentionNotification); } } else { getCore().markPostKnown(post); @@ -746,6 +747,7 @@ public class WebInterface implements CoreListener { notificationManager.addNotification(newReplyNotification); if (!getMentionedSones(reply.getText()).isEmpty()) { mentionNotification.add(reply.getPost()); + notificationManager.addNotification(mentionNotification); } } else { getCore().markReplyKnown(reply);