Skip to content

Commit e5b6b03

Browse files
committed
Fix bug in ProfileViewDetailedDefinition
Closes issue #109.
1 parent 22bc1d0 commit e5b6b03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ATProtoKit/Models/Lexicons/app.bsky/Actor/AppBskyActorDefs.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ extension AppBskyLexicon.Actor {
211211
public let associated: ProfileAssociatedDefinition?
212212

213213
/// The starter pack the user account used to join Bluesky. Optional.
214-
public let joinedViaStarterPack: AppBskyLexicon.Graph.StarterpackRecord?
214+
public let joinedViaStarterPack: AppBskyLexicon.Graph.StarterPackViewBasicDefinition?
215215

216216
/// The date the profile was last indexed. Optional.
217217
public let indexedAt: Date?
@@ -231,7 +231,7 @@ extension AppBskyLexicon.Actor {
231231

232232
public init(actorDID: String, actorHandle: String, displayName: String? = nil, description: String? = nil, avatarImageURL: URL? = nil,
233233
bannerImageURL: URL? = nil, followerCount: Int? = nil, followCount: Int? = nil, postCount: Int? = nil,
234-
associated: ProfileAssociatedDefinition?, joinedViaStarterPack: AppBskyLexicon.Graph.StarterpackRecord?, indexedAt: Date?,
234+
associated: ProfileAssociatedDefinition?, joinedViaStarterPack: AppBskyLexicon.Graph.StarterPackViewBasicDefinition?, indexedAt: Date?,
235235
createdAt: Date?, viewer: ViewerStateDefinition? = nil, labels: [ComAtprotoLexicon.Label.LabelDefinition]? = nil,
236236
pinnedPost: ComAtprotoLexicon.Repository.StrongReference?) {
237237
self.actorDID = actorDID
@@ -264,7 +264,7 @@ extension AppBskyLexicon.Actor {
264264
self.followerCount = try container.decodeIfPresent(Int.self, forKey: .followerCount)
265265
self.followCount = try container.decodeIfPresent(Int.self, forKey: .followCount)
266266
self.postCount = try container.decodeIfPresent(Int.self, forKey: .postCount)
267-
self.joinedViaStarterPack = try container.decodeIfPresent(AppBskyLexicon.Graph.StarterpackRecord.self, forKey: .joinedViaStarterPack)
267+
self.joinedViaStarterPack = try container.decodeIfPresent(AppBskyLexicon.Graph.StarterPackViewBasicDefinition.self, forKey: .joinedViaStarterPack)
268268
self.associated = try container.decodeIfPresent(AppBskyLexicon.Actor.ProfileAssociatedDefinition.self, forKey: .associated)
269269
self.indexedAt = try container.decodeDateIfPresent(forKey: .indexedAt)
270270
self.createdAt = try container.decodeDateIfPresent(forKey: .createdAt)

0 commit comments

Comments
 (0)