Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Verify Identical Domains Emit Origin (#5255)

authored by

Hailey and committed by
GitHub
b37b64fb 08f5f37b

+1 -10
+1 -4
src/lib/statsig/gates.ts
··· 1 1 export type Gate = 2 2 // Keep this alphabetic please. 3 - | 'debug_show_feedcontext' 4 - | 'suggested_feeds_interstitial' 5 - | 'video_upload' // upload videos 6 - | 'video_view_on_posts' // see posted videos 3 + 'debug_show_feedcontext' | 'suggested_feeds_interstitial' | 'video_upload' // upload videos
-6
src/view/com/util/post-embeds/VideoEmbed.web.tsx
··· 6 6 7 7 import {isFirefox} from '#/lib/browser' 8 8 import {clamp} from '#/lib/numbers' 9 - import {useGate} from '#/lib/statsig/statsig' 10 9 import { 11 10 HLSUnsupportedError, 12 11 VideoEmbedInnerWeb, ··· 20 19 21 20 export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { 22 21 const ref = useRef<HTMLDivElement>(null) 23 - const gate = useGate() 24 22 const {active, setActive, sendPosition, currentActiveView} = 25 23 useActiveVideoWeb() 26 24 const [onScreen, setOnScreen] = useState(false) ··· 51 49 ), 52 50 [key], 53 51 ) 54 - 55 - if (!gate('video_view_on_posts')) { 56 - return null 57 - } 58 52 59 53 let aspectRatio = 16 / 9 60 54