projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test for DI constructability of DeleteImagePage
[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
910c939
..
d3f4540
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,7
+13,7
@@
import java.net.URI
* This page lets the user view a post and all its replies.
*/
class ViewPostPage(template: Template, webInterface: WebInterface):
* This page lets the user view a post and all its replies.
*/
class ViewPostPage(template: Template, webInterface: WebInterface):
- SoneTemplatePage("viewPost.html",
template, "Page.ViewPost.Title", webInterface, false
) {
+ SoneTemplatePage("viewPost.html",
webInterface, template, "Page.ViewPost.Title"
) {
override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
templateContext["post"] = freenetRequest.parameters["post"]?.let(webInterface.core::getPost)
override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
templateContext["post"] = freenetRequest.parameters["post"]?.let(webInterface.core::getPost)