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";