Skip to content

Members see their own map pin at the library owner's house #494

Description

@mcull

The "you are here" pin on a library map is built from the library owner's address while carrying the session user's id.

src/components/CollectionDetailClient.tsx:551-557:

// mapCurrentUser — reads library?.owner?.addresses?.[0] for coordinates
// but uses the session user's id

Effect: any member viewing a library they don't own sees their own pin placed at the owner's home. Someone who has no address of their own is also counted as "located" there, which inflates locatedCount and can flip mapEarnsFullSize.

Pre-existing — not introduced by the member-location privacy work, but that branch modified locatedCount, so it now sits in the blast radius.

Found during code review on fix/member-location-privacy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions