Verify Identical Domains Emit Origin (#5255)

zio/stable
Hailey 2024-09-10 08:16:41 -07:00 committed by GitHub
parent 08f5f37b34
commit b37b64fb49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 10 deletions

View File

@ -1,6 +1,3 @@
export type Gate = export type Gate =
// Keep this alphabetic please. // Keep this alphabetic please.
| 'debug_show_feedcontext' 'debug_show_feedcontext' | 'suggested_feeds_interstitial' | 'video_upload' // upload videos
| 'suggested_feeds_interstitial'
| 'video_upload' // upload videos
| 'video_view_on_posts' // see posted videos

View File

@ -6,7 +6,6 @@ import {useLingui} from '@lingui/react'
import {isFirefox} from '#/lib/browser' import {isFirefox} from '#/lib/browser'
import {clamp} from '#/lib/numbers' import {clamp} from '#/lib/numbers'
import {useGate} from '#/lib/statsig/statsig'
import { import {
HLSUnsupportedError, HLSUnsupportedError,
VideoEmbedInnerWeb, VideoEmbedInnerWeb,
@ -20,7 +19,6 @@ import * as VideoFallback from './VideoEmbedInner/VideoFallback'
export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) {
const ref = useRef<HTMLDivElement>(null) const ref = useRef<HTMLDivElement>(null)
const gate = useGate()
const {active, setActive, sendPosition, currentActiveView} = const {active, setActive, sendPosition, currentActiveView} =
useActiveVideoWeb() useActiveVideoWeb()
const [onScreen, setOnScreen] = useState(false) const [onScreen, setOnScreen] = useState(false)
@ -52,10 +50,6 @@ export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) {
[key], [key],
) )
if (!gate('video_view_on_posts')) {
return null
}
let aspectRatio = 16 / 9 let aspectRatio = 16 / 9
if (embed.aspectRatio) { if (embed.aspectRatio) {