From b37b64fb49bd77597ac9b4aa239edc3f05bfd0e0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 10 Sep 2024 08:16:41 -0700 Subject: [PATCH] Verify Identical Domains Emit Origin (#5255) --- src/lib/statsig/gates.ts | 5 +---- src/view/com/util/post-embeds/VideoEmbed.web.tsx | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index 1a234e00..df9daab4 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -1,6 +1,3 @@ export type Gate = // Keep this alphabetic please. - | 'debug_show_feedcontext' - | 'suggested_feeds_interstitial' - | 'video_upload' // upload videos - | 'video_view_on_posts' // see posted videos + 'debug_show_feedcontext' | 'suggested_feeds_interstitial' | 'video_upload' // upload videos diff --git a/src/view/com/util/post-embeds/VideoEmbed.web.tsx b/src/view/com/util/post-embeds/VideoEmbed.web.tsx index e88b2ff4..3b6125c4 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.web.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.web.tsx @@ -6,7 +6,6 @@ import {useLingui} from '@lingui/react' import {isFirefox} from '#/lib/browser' import {clamp} from '#/lib/numbers' -import {useGate} from '#/lib/statsig/statsig' import { HLSUnsupportedError, VideoEmbedInnerWeb, @@ -20,7 +19,6 @@ import * as VideoFallback from './VideoEmbedInner/VideoFallback' export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { const ref = useRef(null) - const gate = useGate() const {active, setActive, sendPosition, currentActiveView} = useActiveVideoWeb() const [onScreen, setOnScreen] = useState(false) @@ -52,10 +50,6 @@ export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { [key], ) - if (!gate('video_view_on_posts')) { - return null - } - let aspectRatio = 16 / 9 if (embed.aspectRatio) {