Set fixed ID for the startup notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:33:55 +0000 (06:33 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:33:55 +0000 (06:33 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 4ede520..10bacee 100644 (file)
@@ -227,7 +227,7 @@ public class WebInterface implements CoreListener {
                /* notification templates. */
                Template startupNotificationTemplate = templateFactory.createTemplate(createReader("/templates/notify/startupNotification.html"));
 
-               final TemplateNotification startupNotification = new TemplateNotification(startupNotificationTemplate);
+               final TemplateNotification startupNotification = new TemplateNotification("startup-notification", startupNotificationTemplate);
                notificationManager.addNotification(startupNotification);
 
                Ticker.getInstance().registerEvent(System.currentTimeMillis() + (120 * 1000), new Runnable() {