diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/downloader/MediaDownloader.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/downloader/MediaDownloader.kt index 33eb9575..cbc73541 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/downloader/MediaDownloader.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/downloader/MediaDownloader.kt @@ -231,7 +231,7 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp private fun handleLocalReferences(path: String) = runBlocking { Uri.parse(path).let { uri -> - if (uri.scheme == "file") { + if (uri.scheme == "file" || uri.scheme == null) { return@let suspendCoroutine { continuation -> context.httpServer.ensureServerStarted()?.let { server -> val file = Paths.get(uri.path).toFile()