From 4038f7fdb94a65be97955da11b497c228c209510 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 16 May 2024 18:25:08 +0200 Subject: [PATCH] Update Model/Applications/VideosAPI.swift --- Model/Applications/VideosAPI.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Applications/VideosAPI.swift b/Model/Applications/VideosAPI.swift index 50e0eca6..32c3d098 100644 --- a/Model/Applications/VideosAPI.swift +++ b/Model/Applications/VideosAPI.swift @@ -108,10 +108,10 @@ extension VideosAPI { .onFailure { failureHandler?($0) } } - func shareURL(_ item: ContentItem, frontendURL: String? = nil, time: CMTime? = nil) -> URL? { + func shareURL(_ item: ContentItem, frontendURLString: String? = nil, time: CMTime? = nil) -> URL? { var urlComponents: URLComponents? - if let frontendURLString: String = frontendURL, - let frontendURL: URL = URL(string: frontendURLString) { + if let frontendURLString, + let frontendURL = URL(string: frontendURLString) { urlComponents = URLComponents(URL: frontendURL, resolvingAgainstBaseURL: false) } else if let instanceComponents = account?.instance?.urlComponents { urlComponents = instanceComponents