X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetNotificationsAjaxPage.kt;h=f3b370d78a9f5efd7c14a23ce81f795f5c40115c;hp=19cdd2404db3ada396584c876e1bb736f5036733;hb=8a0e0ee93d2f49762d87c4897a3a4de7273b3046;hpb=aefada2a6f469577c522c54b23d00ee735daa019 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt index 19cdd24..f3b370d 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetNotificationsAjaxPage.kt @@ -10,11 +10,13 @@ import net.pterodactylus.sone.web.page.FreenetRequest import net.pterodactylus.util.notify.Notification import net.pterodactylus.util.notify.TemplateNotification import java.io.StringWriter +import javax.inject.Inject /** * AJAX handler to return all current notifications. */ -class GetNotificationsAjaxPage(webInterface: WebInterface) : JsonPage("getNotifications.ajax", webInterface) { +class GetNotificationsAjaxPage @Inject constructor(webInterface: WebInterface) : + JsonPage("getNotifications.ajax", webInterface) { override val needsFormPassword = false override val requiresLogin = false