diff --git a/src/state/models/content/list.ts b/src/state/models/content/list.ts index fc045e185f..fd5074d8c6 100644 --- a/src/state/models/content/list.ts +++ b/src/state/models/content/list.ts @@ -103,6 +103,10 @@ export class ListModel { return this.list?.viewer?.muted } + get creatorDid() { + return this.list?.creator.did + } + // public api // = diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 322f994863..11a847db3a 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -97,9 +97,9 @@ export const ProfileListScreen = withAuthRequired( }, [store, list]) const onPressShareList = React.useCallback(() => { - const url = toShareUrl(`/profile/${name}/lists/${rkey}`) + const url = toShareUrl(`/profile/${list.creatorDid}/lists/${rkey}`) shareUrl(url) - }, [name, rkey]) + }, [list.creatorDid, rkey]) const renderEmptyState = React.useCallback(() => { return