Skip to content

Commit

Permalink
Verify Identical Domains Emit Origin (#5255)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Sep 10, 2024
1 parent 08f5f37 commit b37b64f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions src/lib/statsig/gates.ts
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions src/view/com/util/post-embeds/VideoEmbed.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b37b64f

Please sign in to comment.