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 fun needsFormPassword() = false
- override fun requiresLogin() = false
+ override val needsFormPassword = false
+ override val requiresLogin = false
override fun createJsonObject(request: FreenetRequest) =
getCurrentSone(request.toadletContext, false).let { currentSone ->