Store the list notification itself in the notification template.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 1 Jan 2011 01:26:36 +0000 (02:26 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 1 Jan 2011 01:26:36 +0000 (02:26 +0100)
src/main/java/net/pterodactylus/sone/notify/ListNotification.java

index 7a0d6f8..7d3e3c7 100644 (file)
@@ -49,6 +49,7 @@ public class ListNotification<T> extends TemplateNotification {
        public ListNotification(String id, String key, Template template) {
                super(id, template);
                template.set(key, elements);
        public ListNotification(String id, String key, Template template) {
                super(id, template);
                template.set(key, elements);
+               template.set("notification", this);
        }
 
        //
        }
 
        //