Skip to content

profile: PublicProfileClient의 useProfileExtras가 타인 프로필에서 내 데이터를 조회 (#661 회귀) #669

Description

@thxforall

문제

#661 리팩토링에서 lib/data/profile.tsfetchUserProfileExtras(_userId)가 인자를 무시하고 항상 /api/v1/users/me를 호출한다. 그런데 PublicProfileClient(타인 프로필)가 useProfileExtras(userId)로 같은 함수를 사용 — 결과적으로:

  • 로그인 상태로 타인 프로필 방문 시 내 DNA/ink가 타인 프로필에 표시
  • 비로그인 시 requiresAuth로 인해 조회 실패

리팩토링 전(supabase 직접 조회)에는 userId 기준으로 올바르게 조회했다.

수정 방향

  • 백엔드에 공개 프로필 extras 엔드포인트(GET /api/v1/users/{id} 확장 또는 별도) 마련 후 userId 분기, 또는 공개 프로필에서 DNA 카드 노출 정책 재결정

참고

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions