Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Video] Don't require email verification on self-host (#5332)

authored by

Hailey and committed by
GitHub
53338217 843f9925

+11 -4
+11 -4
src/view/com/composer/videos/SelectVideoBtn.tsx
··· 13 13 import {isNative} from '#/platform/detection' 14 14 import {useModalControls} from '#/state/modals' 15 15 import {useSession} from '#/state/session' 16 + import {BSKY_SERVICE} from 'lib/constants' 17 + import {getHostnameFromUrl} from 'lib/strings/url-helpers' 16 18 import {atoms as a, useTheme} from '#/alf' 17 19 import {Button} from '#/components/Button' 18 20 import {VideoClip_Stroke2_Corner0_Rounded as VideoClipIcon} from '#/components/icons/VideoClip' ··· 38 40 return 39 41 } 40 42 41 - if (!currentAccount?.emailConfirmed) { 43 + if ( 44 + currentAccount && 45 + !currentAccount.emailConfirmed && 46 + getHostnameFromUrl(currentAccount.service) === 47 + getHostnameFromUrl(BSKY_SERVICE) 48 + ) { 42 49 Keyboard.dismiss() 43 50 control.open() 44 51 } else { ··· 71 78 } 72 79 } 73 80 }, [ 74 - onSelectVideo, 75 81 requestVideoAccessIfNeeded, 82 + currentAccount, 83 + control, 76 84 setError, 77 85 _, 78 - control, 79 - currentAccount?.emailConfirmed, 86 + onSelectVideo, 80 87 ]) 81 88 82 89 return (