point the state and feature moderation call sites at the sdk
Query, notification and feature-level moderation reads switch to the sdk types and take their `moderate*`/`hasMutedWord` entry points from the `lib/moderation/subjects` seam, since these paths still carry `@atproto/api`-typed views. `shouldFilterNotif` is the one behavioral seam worth noting: its notification and facet values come from an unmigrated read, so the mute-word check goes through the widening wrapper rather than the sdk export directly.
This commit is contained in:
@@ -17,12 +17,7 @@
|
||||
*/
|
||||
|
||||
import {useCallback, useEffect, useMemo, useRef} from 'react'
|
||||
import {
|
||||
AppBskyFeedDefs,
|
||||
AppBskyFeedPost,
|
||||
AtUri,
|
||||
moderatePost,
|
||||
} from '@atproto/api'
|
||||
import {AppBskyFeedDefs, AppBskyFeedPost, AtUri} from '@atproto/api'
|
||||
import {
|
||||
type InfiniteData,
|
||||
type QueryClient,
|
||||
@@ -31,6 +26,7 @@ import {
|
||||
useQueryClient,
|
||||
} from '@tanstack/react-query'
|
||||
|
||||
import {moderatePost} from '#/lib/moderation/subjects'
|
||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||
import {STALE} from '#/state/queries'
|
||||
import {useAppviewClient} from '#/state/session'
|
||||
|
||||
Reference in New Issue
Block a user