mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Update Model/Applications/VideosAPI.swift
This commit is contained in:
parent
1f667818db
commit
4038f7fdb9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user