projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🐛 Fix new-sone handler
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
ViewPostPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
index
7d67ecd
..
7e4d6a5
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
@@
-13,8
+13,9
@@
import javax.inject.*
* This page lets the user view a post and all its replies.
*/
@TemplatePath("/templates/viewPost.html")
* This page lets the user view a post and all its replies.
*/
@TemplatePath("/templates/viewPost.html")
+@ToadletPath("viewPost.html")
class ViewPostPage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) :
class ViewPostPage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) :
- SoneTemplatePage(
"viewPost.html",
webInterface, loaders, templateRenderer, pageTitleKey = "Page.ViewPost.Title") {
+ SoneTemplatePage(webInterface, loaders, templateRenderer, pageTitleKey = "Page.ViewPost.Title") {
override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
templateContext["post"] = soneRequest.parameters["post"]?.let(soneRequest.core::getPost)
override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
templateContext["post"] = soneRequest.parameters["post"]?.let(soneRequest.core::getPost)