From: David ‘Bombe’ Roden Date: Fri, 13 Oct 2017 06:01:59 +0000 (+0200) Subject: Add default value for “trusted” parameter X-Git-Tag: 0.9.8^2~30 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a14d09dbe4e09ad923abe7cc21957dfa52a02e7a;p=Sone.git Add default value for “trusted” parameter --- diff --git a/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt b/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt index 3744fd7..43b9f4a 100644 --- a/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt +++ b/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt @@ -5,7 +5,7 @@ package net.pterodactylus.sone.text * link is an SSK or USK link and the post was created by an identity that owns * the keyspace in question. */ -data class FreenetLinkPart(val link: String, override val text: String, val title: String, val trusted: Boolean) : Part { +data class FreenetLinkPart(val link: String, override val text: String, val title: String, val trusted: Boolean = false) : Part { constructor(link: String, text: String, trusted: Boolean) : this(link, text, link, trusted)