Enable show less / more buttons for third party feeds (#8672)

Co-authored-by: hailey <hailey@blueskyweb.xyz>
Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
kindgracekind
2025-08-26 14:16:50 -05:00
committed by GitHub
parent 98d96bd28b
commit 88e6dff484
11 changed files with 150 additions and 34 deletions
+4 -1
View File
@@ -70,6 +70,7 @@ import {
useFeedFeedbackContext,
} from '#/state/feed-feedback'
import {useFeedFeedback} from '#/state/feed-feedback'
import {useFeedInfo} from '#/state/queries/feed'
import {usePostLikeMutationQueue} from '#/state/queries/post'
import {
type AuthorFilter,
@@ -199,7 +200,9 @@ function Feed() {
throw new Error(`Invalid video feed params ${JSON.stringify(params)}`)
}
}, [params])
const feedFeedback = useFeedFeedback(feedDesc, hasSession)
const feedUri = params.type === 'feedgen' ? params.uri : undefined
const {data: feedInfo} = useFeedInfo(feedUri)
const feedFeedback = useFeedFeedback(feedInfo, hasSession)
const {data, error, hasNextPage, isFetchingNextPage, fetchNextPage} =
usePostFeedQuery(
feedDesc,