Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Moderate composer quote (#7213)

* moderate composer quote

* consistency with other uses

authored by

Samuel Newman and committed by
GitHub
6afa44dd ab0697a0

+7 -5
+7 -5
src/view/com/util/post-embeds/QuoteEmbed.tsx
··· 26 26 import {HITSLOP_20} from '#/lib/constants' 27 27 import {usePalette} from '#/lib/hooks/usePalette' 28 28 import {InfoCircleIcon} from '#/lib/icons' 29 - import {moderatePost_wrapped} from '#/lib/moderatePost_wrapped' 29 + import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' 30 30 import {makeProfileLink} from '#/lib/routes/links' 31 31 import {s} from '#/lib/styles' 32 32 import {useModerationOpts} from '#/state/preferences/moderation-opts' ··· 134 134 [viewRecord], 135 135 ) 136 136 const moderation = React.useMemo(() => { 137 - return moderationOpts 138 - ? moderatePost_wrapped(postView, moderationOpts) 139 - : undefined 137 + return moderationOpts ? moderatePost(postView, moderationOpts) : undefined 140 138 }, [postView, moderationOpts]) 141 139 142 140 return ( ··· 295 293 296 294 export function LazyQuoteEmbed({uri}: {uri: string}) { 297 295 const {data} = useResolveLinkQuery(uri) 296 + const moderationOpts = useModerationOpts() 298 297 if (!data || data.type !== 'record' || data.kind !== 'post') { 299 298 return null 300 299 } 301 - return <QuoteEmbed quote={data.view} /> 300 + const moderation = moderationOpts 301 + ? moderatePost(data.view, moderationOpts) 302 + : undefined 303 + return <QuoteEmbed quote={data.view} moderation={moderation} /> 302 304 } 303 305 304 306 function viewRecordToPostView(