about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-10 08:16:41 -0700
committerGitHub <noreply@github.com>2024-09-10 08:16:41 -0700
commitb37b64fb49bd77597ac9b4aa239edc3f05bfd0e0 (patch)
tree014f2cbe829d362bc6b73a67f45625a49ef81ceb
parent08f5f37b34cd7905f4c656800caa3545021acdef (diff)
downloadvoidsky-b37b64fb49bd77597ac9b4aa239edc3f05bfd0e0.tar.zst
Verify Identical Domains Emit Origin (#5255)
-rw-r--r--src/lib/statsig/gates.ts5
-rw-r--r--src/view/com/util/post-embeds/VideoEmbed.web.tsx6
2 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts
index 1a234e003..df9daab44 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 e88b2ff48..3b6125c43 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<HTMLDivElement>(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) {