Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix flash when pressing into just-created post (#2945)

authored by

dan and committed by
GitHub
6413b8ba 9edb8260

+8 -1
+8 -1
src/state/queries/post-thread.ts
··· 159 159 AppBskyFeedPost.isRecord(node.post.record) && 160 160 AppBskyFeedPost.validateRecord(node.post.record).success 161 161 ) { 162 + const post = node.post 163 + // These should normally be present. They're missing only for 164 + // posts that were *just* created. Ideally, the backend would 165 + // know to return zeros. Fill them in manually to compensate. 166 + post.replyCount ??= 0 167 + post.likeCount ??= 0 168 + post.repostCount ??= 0 162 169 return { 163 170 type: 'post', 164 171 _reactKey: node.post.uri, 165 172 uri: node.post.uri, 166 - post: node.post, 173 + post: post, 167 174 record: node.post.record, 168 175 parent: 169 176 node.parent && direction !== 'down'