Bluesky app fork with some witchin' additions 💫

add `likeCount` etal. to `embedViewRecordToPostView` (#3500)

* fix qt jumps

Revert "don't show loading placeholder if we don't need it"

This reverts commit 406f801f217b2733fdd82732c0af74186fc47464.

don't show loading placeholder if we don't need it

add `likeCount` etal. to `embedViewRecordToPostView`

* lint

* Revert the shimmer change

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>

authored by hailey.at

Dan Abramov and committed by
GitHub
24bd3d69 bedb0c3f

+5 -1
+5 -1
src/state/queries/util.ts
··· 1 - import {QueryClient, QueryKey, InfiniteData} from '@tanstack/react-query' 2 1 import { 3 2 AppBskyEmbedRecord, 4 3 AppBskyEmbedRecordWithMedia, 5 4 AppBskyFeedDefs, 6 5 AppBskyFeedPost, 7 6 } from '@atproto/api' 7 + import {InfiniteData, QueryClient, QueryKey} from '@tanstack/react-query' 8 8 9 9 export function truncateAndInvalidate<T = any>( 10 10 queryClient: QueryClient, ··· 54 54 indexedAt: v.indexedAt, 55 55 labels: v.labels, 56 56 embed: v.embeds?.[0], 57 + // TODO we can remove the `as` once we update @atproto/api 58 + likeCount: v.likeCount as number | undefined, 59 + replyCount: v.replyCount as number | undefined, 60 + repostCount: v.repostCount as number | undefined, 57 61 } 58 62 }