From af1b387e37b2e6329678857f20e5a6c01075da17 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Tue, 22 Oct 2024 00:18:36 +0200 Subject: [PATCH] fix: picture endpoint, remove extension dot --- Sources/IdentityUser.swift | 2 +- Sources/User.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/IdentityUser.swift b/Sources/IdentityUser.swift index 113f8c2..29cd8eb 100644 --- a/Sources/IdentityUser.swift +++ b/Sources/IdentityUser.swift @@ -217,7 +217,7 @@ public struct VOIdentityUser { } public func urlForPicture(_: String, fileExtension: String) -> URL { - URL(string: "\(url())/picture.\(fileExtension)?access_token=\(accessToken)")! + URL(string: "\(url())/picture\(fileExtension)?access_token=\(accessToken)")! } // MARK: - Payloads diff --git a/Sources/User.swift b/Sources/User.swift index 63ab41d..9b8c748 100644 --- a/Sources/User.swift +++ b/Sources/User.swift @@ -98,7 +98,7 @@ public struct VOUser { var components = URLComponents() components.queryItems = items let query = components.url!.query! - return URL(string: "\(urlForID(id))/picture.\(fileExtension)?\(query)")! + return URL(string: "\(urlForID(id))/picture\(fileExtension)?\(query)")! } // MARK: - Payloads