🐛 Fix new-remote-post handler
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / notification / NotificationHandlerModule.kt
index 522e983..c75cbc1 100644 (file)
@@ -39,6 +39,7 @@ class NotificationHandlerModule : AbstractModule() {
                bind<MarkPostKnownDuringFirstStartHandler>().asSingleton()
                bind<SoneLockedOnStartupHandler>().asSingleton()
                bind<NewSoneHandler>().asSingleton()
+               bind<NewRemotePostHandler>().asSingleton()
        }
 
        @Provides
@@ -57,11 +58,6 @@ class NotificationHandlerModule : AbstractModule() {
 
        @Provides
        @Singleton
-       fun getNewRemotePostHandler(notificationManager: NotificationManager, @Named("newRemotePost") newPostNotification: ListNotification<Post>) =
-                       NewRemotePostHandler(notificationManager, newPostNotification)
-
-       @Provides
-       @Singleton
        @Named("newRemotePost")
        fun getNewPostNotification(loaders: Loaders) =
                        ListNotification<Post>("new-post-notification", "posts", loaders.loadTemplate("/templates/notify/newPostNotification.html"), dismissable = false)