Skip to content

fix(privacy): hide profile photo and banner for deactivated accounts#14522

Merged
dylanjeffers merged 1 commit into
mainfrom
fix/hide-deactivated-user-profile-images
Jul 15, 2026
Merged

fix(privacy): hide profile photo and banner for deactivated accounts#14522
dylanjeffers merged 1 commit into
mainfrom
fix/hide-deactivated-user-profile-images

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Problem

A deactivated/deleted artist account (reported in Slack: audius.co/cyranomusic) still displayed their profile photo and banner on the profile page. This is a privacy/GDPR concern — a user who deletes their account should no longer have their uploaded images shown.

Fix

When is_deactivated is true, force the default placeholder for both the profile picture and the cover photo instead of resolving the user's uploaded images.

The fix is applied centrally in the shared image hooks so the placeholder renders everywhere a deactivated user's avatar/banner would otherwise appear (profile page, comments, follower lists, cards, etc.), not just the profile page:

  • Webpackages/web/src/hooks/useProfilePicture.ts, packages/web/src/hooks/useCoverPhoto.ts
  • Mobilepackages/mobile/src/components/image/UserImage.tsx (useProfilePicture), packages/mobile/src/components/image/CoverPhoto.tsx (useCoverPhoto)

Plus explicit/defensive handling in the web profile page components:

  • packages/web/src/pages/profile-page/components/desktop/ProfilePage.tsx
  • packages/web/src/pages/profile-page/components/mobile/ProfileHeader.tsx

Platforms

  • ✅ Web (desktop + mobile web)
  • ✅ Mobile (iOS + Android — shared hooks)

Testing

  • Lint passes on all changed files.
  • Manual: view a deactivated account's profile → profile picture and banner render as the default placeholders instead of the user's images.

🤖 Generated with Claude Code

Deactivated/deleted accounts were still exposing their profile picture
and cover photo (e.g. an account that requested deletion still showed
their images on the profile page). This is a privacy/GDPR concern.

When is_deactivated is true, force the default placeholder for both the
profile picture and cover photo instead of the user's uploaded images.
Applied centrally in the web and mobile useProfilePicture/useCoverPhoto
hooks so the placeholder renders everywhere those images appear, plus
defensive handling in the web profile page components.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 42f2149

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers
dylanjeffers merged commit 4a9f312 into main Jul 15, 2026
13 checks passed
@dylanjeffers
dylanjeffers deleted the fix/hide-deactivated-user-profile-images branch July 15, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant