@@ -13,7 +13,7 @@ extension AppBskyLexicon.Feed.PostViewDefinition: ATRecordViewProtocol {
13
13
let config = ATProtocolConfiguration ( userSession: session, pdsURL: session. pdsURL ?? " https://bsky.social " )
14
14
_ = try await config. getSession ( )
15
15
16
- let atProto = ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
16
+ let atProto = await ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
17
17
let record = try await atProto. getPosts ( [ self . uri] )
18
18
19
19
return record. posts [ 0 ]
@@ -30,7 +30,7 @@ extension AppBskyLexicon.Feed.GeneratorViewDefinition: ATRecordViewProtocol {
30
30
let config = ATProtocolConfiguration ( userSession: session, pdsURL: session. pdsURL ?? " https://bsky.social " )
31
31
_ = try await config. getSession ( )
32
32
33
- let atProto = ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
33
+ let atProto = await ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
34
34
let record = try await atProto. getFeedGenerator ( by: self . feedURI)
35
35
36
36
return record. view
@@ -43,7 +43,7 @@ extension AppBskyLexicon.Graph.ListViewDefinition: ATRecordViewProtocol {
43
43
let config = ATProtocolConfiguration ( userSession: session, pdsURL: session. pdsURL ?? " https://bsky.social " )
44
44
_ = try await config. getSession ( )
45
45
46
- let atProto = ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
46
+ let atProto = await ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
47
47
let record = try await atProto. getList ( from: self . uri)
48
48
49
49
return record. list
@@ -56,7 +56,7 @@ extension AppBskyLexicon.Graph.StarterPackViewDefinition: ATRecordViewProtocol {
56
56
let config = ATProtocolConfiguration ( userSession: session, pdsURL: session. pdsURL ?? " https://bsky.social " )
57
57
_ = try await config. getSession ( )
58
58
59
- let atProto = ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
59
+ let atProto = await ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
60
60
let record = try await atProto. getStarterPack ( uri: self . uri)
61
61
62
62
return record. starterPack
@@ -73,7 +73,7 @@ extension AppBskyLexicon.Feed.FeedViewPostDefinition: ATRecordViewProtocol {
73
73
let config = ATProtocolConfiguration ( userSession: session, pdsURL: session. pdsURL ?? " https://bsky.social " )
74
74
_ = try await config. getSession ( )
75
75
76
- let atProto = ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
76
+ let atProto = await ATProtoKit ( sessionConfiguration: config, canUseBlueskyRecords: false )
77
77
let record = try await atProto. getFeed ( by: self . post. uri)
78
78
79
79
return record. feed [ 0 ]
0 commit comments