X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FUnlockSoneAjaxPage.kt;h=efa70f100c267540a6f2c80870a72e2e3be87950;hb=c28013c8a4bcb9776a1e2d82ffd6c4c8297ffb62;hp=7d77c05f2e55e229a6855326f3c126ce511397d9;hpb=5ebcf8e99818206776539ab6610461dc4386a304;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt index 7d77c05..efa70f1 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt @@ -3,11 +3,13 @@ package net.pterodactylus.sone.web.ajax import net.pterodactylus.sone.utils.parameters import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.FreenetRequest +import javax.inject.Inject /** * Lets the user [unlock][net.pterodactylus.sone.core.Core.unlockSone] a [Sone][net.pterodactylus.sone.data.Sone]. */ -class UnlockSoneAjaxPage(webInterface: WebInterface) : JsonPage("unlockSone.ajax", webInterface) { +class UnlockSoneAjaxPage @Inject constructor(webInterface: WebInterface) : + JsonPage("unlockSone.ajax", webInterface) { override val requiresLogin = false