projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
♻️ Move throwing redirect exception into method
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
TrustPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/TrustPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/TrustPage.kt
index
9a4c02f
..
54edc5d
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/TrustPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/TrustPage.kt
@@
-21,7
+21,7
@@
class TrustPage @Inject constructor(webInterface: WebInterface, loaders: Loaders
soneRequest.core.getSone(soneRequest.parameters["sone"]!!)?.let { sone ->
soneRequest.core.trustSone(currentSone, sone)
}
soneRequest.core.getSone(soneRequest.parameters["sone"]!!)?.let { sone ->
soneRequest.core.trustSone(currentSone, sone)
}
-
throw RedirectException
(soneRequest.parameters["returnPage", 256])
+
redirectTo
(soneRequest.parameters["returnPage", 256])
}
}
}
}