commit 62396885e23e976213cf4418c51671622431d6dd
parent af138225f13159b86430fc92a489889b83c27427
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Sat,  9 Dec 2023 22:50:39 +0100

fix(core/media_downloader): handle local references

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/downloader/MediaDownloader.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ -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<String> { continuation -> context.httpServer.ensureServerStarted()?.let { server -> val file = Paths.get(uri.path).toFile()