Merge pull request #565 from stonerl/private-instances

support for private instances
This commit is contained in:
Arkadiusz Fal
2023-11-25 22:26:13 +01:00
committed by GitHub

View File

@@ -105,6 +105,7 @@ extension PlayerModel {
func playerAPI(_ video: Video) -> VideosAPI? {
guard let url = video.instanceURL else { return accounts.api }
if accounts.current?.url == url { return accounts.api }
switch video.app {
case .local:
return nil