From d7568412cfc8b50c25501902dda9cab6e2f4dcd9 Mon Sep 17 00:00:00 2001 From: Aditya948351 Date: Sat, 6 Jun 2026 18:44:42 +0530 Subject: [PATCH] fix: resolve build error, firebase rewrite, and privacy owner bypass --- firebase.json | 2 +- src/app/u/client.tsx | 2 +- src/components/layout/Footer.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/firebase.json b/firebase.json index 567ca5d6..7c13681f 100644 --- a/firebase.json +++ b/firebase.json @@ -10,7 +10,7 @@ "rewrites": [ { "source": "/u/**", - "destination": "/u/index.html" + "destination": "/u.html" }, { "source": "**", diff --git a/src/app/u/client.tsx b/src/app/u/client.tsx index af97ce86..9e62e19b 100644 --- a/src/app/u/client.tsx +++ b/src/app/u/client.tsx @@ -172,7 +172,7 @@ function ProfileContent({ uid }: { uid?: string }) { } // Privacy Check - if (userData.privacySettings?.isPublic === false) { + if (userData.privacySettings?.isPublic === false && currentUser?.uid !== userId) { setError('This profile is private.'); setShowNotFound(true); setLoading(false); diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 0132df68..5adf9513 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -8,6 +8,7 @@ import { RefreshCw, Code, MessageSquare, + Shield, } from "lucide-react"; import logo from "@/assets/logo.webp"; import styles from "./Footer.module.css";