diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx
index 4092e414..a5344997 100644
--- a/src/pages/ProfilePage.tsx
+++ b/src/pages/ProfilePage.tsx
@@ -762,6 +762,15 @@ export function ProfilePage() {
}, [supplementary?.following]);
const isOwnProfile = user?.pubkey === pubkey;
+
+ // Does the profile owner follow the current user?
+ // Wall posts are only visible to people the profile owner follows,
+ // so we hide the compose box if the profile owner doesn't follow us.
+ const profileFollowsMe = useMemo(() => {
+ if (!user?.pubkey || !wallFollowList) return false;
+ if (isOwnProfile) return true;
+ return wallFollowList.includes(user.pubkey);
+ }, [user?.pubkey, wallFollowList, isOwnProfile]);
const { togglePin } = usePinnedNotes(isOwnProfile ? pubkey : undefined);
// Profile theme: always query (so we can show the indicator), but only apply when enabled
@@ -1147,7 +1156,7 @@ export function ProfilePage() {
useLayoutOptions(pubkey ? {
rightSidebar:
No wall posts yet
-Be the first to write on {displayName}'s wall!
+ {profileFollowsMe ? ( +Be the first to write on {displayName}'s wall!
+ ) : user ? ( +{displayName} must follow you before you can post on their wall.
+ ) : ( +Log in to write on {displayName}'s wall.
+ )}