projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
686f8a9
)
Remove unnecessary modifiers
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 22 Feb 2019 23:07:34 +0000
(
00:07
+0100)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 22 Feb 2019 23:07:34 +0000
(
00:07
+0100)
src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
patch
|
blob
|
history
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
patch
|
blob
|
history
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt
patch
|
blob
|
history
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
index
37b1107
..
c6c50bb
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
@@
-29,7
+29,7
@@
class LoginPage @Inject constructor(template: Template, webInterface: WebInterfa
templateContext["identitiesWithoutSone"] = webInterface.core.identityManager.allOwnIdentities.filterNot { "Sone" in it.contexts }.sortedBy { "${it.nickname}@${it.id}" }
}
templateContext["identitiesWithoutSone"] = webInterface.core.identityManager.allOwnIdentities.filterNot { "Sone" in it.contexts }.sortedBy { "${it.nickname}@${it.id}" }
}
- override
public
fun getRedirectTarget(freenetRequest: FreenetRequest) =
+ override fun getRedirectTarget(freenetRequest: FreenetRequest) =
getCurrentSone(freenetRequest.toadletContext)?.let { "index.html" }
override fun isEnabled(toadletContext: ToadletContext) = when {
getCurrentSone(freenetRequest.toadletContext)?.let { "index.html" }
override fun isEnabled(toadletContext: ToadletContext) = when {
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
763fc99
..
0856e86
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
@@
-23,7
+23,7
@@
class ViewPostPage @Inject constructor(template: Template, webInterface: WebInte
override fun isLinkExcepted(link: URI?) = true
override fun isLinkExcepted(link: URI?) = true
-
public
override fun getPageTitle(freenetRequest: FreenetRequest) =
+ override fun getPageTitle(freenetRequest: FreenetRequest) =
(freenetRequest.parameters["post"]?.let(webInterface.core::getPost)?.let {
if (it.text.length > 20) {
it.text.substring(0..19) + "…"
(freenetRequest.parameters["post"]?.let(webInterface.core::getPost)?.let {
if (it.text.length > 20) {
it.text.substring(0..19) + "…"
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt
index
ef0d3f5
..
145be72
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt
@@
-50,7
+50,7
@@
class ViewSonePage @Inject constructor(template: Template, webInterface: WebInte
override fun isLinkExcepted(link: URI?) = true
override fun isLinkExcepted(link: URI?) = true
-
public
override fun getPageTitle(freenetRequest: FreenetRequest): String =
+ override fun getPageTitle(freenetRequest: FreenetRequest): String =
freenetRequest.parameters["sone"]!!.let(webInterface.core::getSone)?.let { sone ->
"${SoneAccessor.getNiceName(sone)} - ${webInterface.l10n.getString("Page.ViewSone.Title")}"
} ?: webInterface.l10n.getString("Page.ViewSone.Page.TitleWithoutSone")
freenetRequest.parameters["sone"]!!.let(webInterface.core::getSone)?.let { sone ->
"${SoneAccessor.getNiceName(sone)} - ${webInterface.l10n.getString("Page.ViewSone.Title")}"
} ?: webInterface.l10n.getString("Page.ViewSone.Page.TitleWithoutSone")