From 1b4fee3e43003d73a2de6a1bf0524bdf092dcc8f Mon Sep 17 00:00:00 2001
From: Samuel Newman <mozzius@protonmail.com>
Date: Sat, 7 Sep 2024 20:15:15 +0100
Subject: [Video] Open the floodgates (partially) (#5208)

---
 src/view/com/posts/FeedItem.tsx | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

(limited to 'src/view/com/posts/FeedItem.tsx')

diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index 6c1bb04c3..7537a4644 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -1,4 +1,4 @@
-import React, {memo, useId, useMemo, useState} from 'react'
+import React, {memo, useMemo, useState} from 'react'
 import {StyleSheet, View} from 'react-native'
 import {
   AppBskyActorDefs,
@@ -21,7 +21,6 @@ import {isReasonFeedSource, ReasonFeedSource} from '#/lib/api/feed/types'
 import {MAX_POST_LINES} from '#/lib/constants'
 import {usePalette} from '#/lib/hooks/usePalette'
 import {makeProfileLink} from '#/lib/routes/links'
-import {useGate} from '#/lib/statsig/statsig'
 import {sanitizeDisplayName} from '#/lib/strings/display-names'
 import {sanitizeHandle} from '#/lib/strings/handles'
 import {countLines} from '#/lib/strings/helpers'
@@ -47,7 +46,6 @@ import {AppModerationCause} from '#/components/Pills'
 import {ProfileHoverCard} from '#/components/ProfileHoverCard'
 import {RichText} from '#/components/RichText'
 import {Link, TextLink, TextLinkOnWebOnly} from '../util/Link'
-import {VideoEmbed} from '../util/post-embeds/VideoEmbed'
 import {AviFollowButton} from './AviFollowButton'
 
 interface FeedItemProps {
@@ -386,7 +384,6 @@ let FeedItemInner = ({
             post={post}
             threadgateRecord={threadgateRecord}
           />
-          <VideoDebug />
           <PostCtrls
             post={post}
             record={record}
@@ -564,23 +561,6 @@ function ReplyToLabel({
   )
 }
 
-function VideoDebug() {
-  const gate = useGate()
-  const id = useId()
-
-  if (!gate('video_debug')) return null
-
-  return (
-    <VideoEmbed
-      embed={{
-        playlist: `https://lumi.jazco.dev/watch/did:plc:q6gjnaw2blty4crticxkmujt/Qmc8w93UpTa2adJHg4ZhnDPrBs1EsbzrekzPcqF5SwusuZ/playlist.m3u8?ignore_me_just_testing_frontend_stuff=${id}`,
-        cid: 'Qmc8w93UpTa2adJHg4ZhnDPrBs1EsbzrekzPcqF5SwusuZ',
-        aspectRatio: {height: 9, width: 16},
-      }}
-    />
-  )
-}
-
 const styles = StyleSheet.create({
   outer: {
     paddingLeft: 10,
-- 
cgit 1.4.1

