Add mention notification to notification manager.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 13:49:57 +0000 (15:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 13:49:57 +0000 (15:49 +0200)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 1e04105..8eb0122 100644 (file)
@@ -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);