File tree Expand file tree Collapse file tree
Sources/ATProtoKit/APIReference/ComAtprotoAPI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,12 +38,7 @@ extension ATProtoKit {
3838 recordCID: String ? = nil ,
3939 pdsURL: String ? = nil
4040 ) async throws -> ComAtprotoLexicon . Repository . GetRecordOutput {
41- let host : String
42- if let pdsURL, !pdsURL. isEmpty {
43- host = pdsURL
44- } else {
45- host = await resolvePDSHost ( for: repository)
46- }
41+ let host = try await self . atidentityResolver. resolvePDSEndpoint ( from: repository)
4742
4843 guard let requestURL = URL ( string: " \( host) /xrpc/com.atproto.repo.getRecord " ) else {
4944 throw ATRequestPrepareError . invalidRequestURL
Original file line number Diff line number Diff line change @@ -41,12 +41,7 @@ extension ATProtoKit {
4141 isArrayReverse: Bool ? = nil ,
4242 pdsURL: String ? = nil
4343 ) async throws -> ComAtprotoLexicon . Repository . ListRecordsOutput {
44- let host : String
45- if let pdsURL, !pdsURL. isEmpty {
46- host = pdsURL
47- } else {
48- host = await resolvePDSHost ( for: repository)
49- }
44+ let host = try await self . atidentityResolver. resolvePDSEndpoint ( from: repository)
5045
5146 guard let requestURL = URL ( string: " \( host) /xrpc/com.atproto.repo.listRecords " ) else {
5247 throw ATRequestPrepareError . invalidRequestURL
You can’t perform that action at this time.
0 commit comments