[SDK] Remove @atproto/api (#11386)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import {View} from 'react-native'
|
||||
import {AppBskyEmbedVideo} from '@atproto/api'
|
||||
|
||||
import {type FeedPostSliceItem} from '#/state/queries/post-feed'
|
||||
import {type VideoFeedSourceContext} from '#/screens/VideoFeed/types'
|
||||
@@ -10,6 +9,8 @@ import {
|
||||
VideoPostCardPlaceholder,
|
||||
} from '#/components/VideoPostCard'
|
||||
import {useAnalytics} from '#/analytics'
|
||||
import {app} from '#/lexicons'
|
||||
import * as bsky from '#/types/bsky'
|
||||
|
||||
export function PostFeedVideoGridRow({
|
||||
items: slices,
|
||||
@@ -21,7 +22,7 @@ export function PostFeedVideoGridRow({
|
||||
const ax = useAnalytics()
|
||||
const gutters = useGutters(['base', 'base', 0, 'base'])
|
||||
const posts = slices
|
||||
.filter(slice => AppBskyEmbedVideo.isView(slice.post.embed))
|
||||
.filter(slice => bsky.isType(app.bsky.embed.video.view, slice.post.embed))
|
||||
.map(slice => ({
|
||||
post: slice.post,
|
||||
moderation: slice.moderation,
|
||||
|
||||
Reference in New Issue
Block a user