about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-08-27 20:12:09 +0300
committerGitHub <noreply@github.com>2025-08-27 10:12:09 -0700
commit8a22584a8704fd8a8fcd43874285a76871218e40 (patch)
treeea5ddeec5a0947628e16e9b05bbb5b403078da9a
parent17cbf75747da83392a4347d98d4c72c537e1ad88 (diff)
downloadvoidsky-8a22584a8704fd8a8fcd43874285a76871218e40.tar.zst
prevent android exposures to gate (#8916)
-rw-r--r--src/screens/Profile/Header/SuggestedFollows.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screens/Profile/Header/SuggestedFollows.tsx b/src/screens/Profile/Header/SuggestedFollows.tsx
index d005d888e..58a507e08 100644
--- a/src/screens/Profile/Header/SuggestedFollows.tsx
+++ b/src/screens/Profile/Header/SuggestedFollows.tsx
@@ -28,7 +28,6 @@ export function AnimatedProfileHeaderSuggestedFollows({
   actorDid: string
 }) {
   const gate = useGate()
-  if (!gate('post_follow_profile_suggested_accounts')) return null
 
   /* NOTE (caidanw):
    * Android does not work well with this feature yet.
@@ -37,6 +36,8 @@ export function AnimatedProfileHeaderSuggestedFollows({
    **/
   if (isAndroid) return null
 
+  if (!gate('post_follow_profile_suggested_accounts')) return null
+
   return (
     <AccordionAnimation isExpanded={isExpanded}>
       <ProfileHeaderSuggestedFollows actorDid={actorDid} />