♻️ Use URI creator in inserter
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / core / SoneUriCreator.kt
index 115c748..183303a 100644 (file)
@@ -7,13 +7,13 @@ import net.pterodactylus.sone.freenet.wot.OwnIdentity
 /**
  * Injectable helper class that can create request and insert URIs for [Sones][Sone].
  */
-class SoneUriCreator {
+open class SoneUriCreator {
 
        fun getRequestUri(sone: Sone): FreenetURI = sone.identity.requestUri
                        .let(::FreenetURI)
                        .sonify(sone.latestEdition)
 
-       fun getInsertUri(sone: Sone): FreenetURI? = (sone.identity as? OwnIdentity)?.insertUri
+       open fun getInsertUri(sone: Sone): FreenetURI? = (sone.identity as? OwnIdentity)?.insertUri
                        ?.let(::FreenetURI)
                        ?.sonify(sone.latestEdition)