Remove replies to unknown posts from status.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index e155944..98539fe 100644 (file)
@@ -214,6 +214,7 @@ public class WebInterface implements CoreListener {
                templateContextFactory.addFilter("in", new ContainsFilter());
                templateContextFactory.addProvider(Provider.TEMPLATE_CONTEXT_PROVIDER);
                templateContextFactory.addProvider(new ClassPathTemplateProvider());
+               templateContextFactory.addTemplateObject("webInterface", this);
                templateContextFactory.addTemplateObject("formPassword", formPassword);
 
                /* create notifications. */
@@ -744,6 +745,14 @@ public class WebInterface implements CoreListener {
         * {@inheritDoc}
         */
        @Override
+       public void soneRemoved(Sone sone) {
+               newSoneNotification.remove(sone);
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       @Override
        public void postRemoved(Post post) {
                newPostNotification.remove(post);
        }