this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

update timeline codable by adding embedAuther struct

+14 -1
+14 -1
Sources/bskyKit/Models/Timeline.swift
··· 138 138 public let record: UnpopulatedPost? 139 139 public let uri: String? 140 140 public let cid: String? 141 - public let author: Author? 141 + public let author: EmbedAuthor? 142 142 public let value: EmbedRecordValue? 143 143 144 144 enum CodingKeys: String, CodingKey { 145 145 case type = "$type" 146 146 case record, uri, cid, author, value 147 147 } 148 + } 149 + 150 + /// Author view shape used inside embedded records. Bluesky occasionally omits 151 + /// fields like `handle` for blocked, deactivated, or otherwise partially 152 + /// visible accounts, so every field is decoded permissively. 153 + public struct EmbedAuthor: Codable, Sendable { 154 + public let did: String 155 + public let handle: String? 156 + public let displayName: String? 157 + public let avatar: String? 158 + public let viewer: Viewer? 159 + public let labels: [AuthorLabels]? 160 + public let createdAt: Date? 148 161 } 149 162 150 163 public struct EmbedRecordValue: Codable, Sendable {