Skip to content

Commit

Permalink
change to hostIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
2002Bishwajeet committed Dec 16, 2024
1 parent c9d0bf5 commit ea9107f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CommentHead = memo(
label: `${t('Block this user')}`,
onPress: () =>
openURL(
`${new DotYouClient({ loggedInIdentity: identity, api: ApiType.Guest }).getRoot()}/owner/connections/${authorOdinId}/block`
`${new DotYouClient({ hostIdentity: identity, api: ApiType.Guest }).getRoot()}/owner/connections/${authorOdinId}/block`
),
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const PostInteracts = memo(

const permalink = useMemo(
() =>
`${new DotYouClient({ loggedInIdentity: odinId || undefined, api: ApiType.Guest }).getRoot()}/posts/${postContent.channelId}/${
`${new DotYouClient({ hostIdentity: odinId || undefined, api: ApiType.Guest }).getRoot()}/posts/${postContent.channelId}/${
postContent.slug ?? postContent.id
}`,
[odinId, postContent]
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/src/components/Feed/Meta/Meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const PostMeta = memo(
const channelLink = useMemo(
() =>
channel
? `${odinId ? new DotYouClient({ loggedInIdentity: odinId, api: ApiType.Guest }).getRoot() : dotYouClient.getRoot()}/posts/${
? `${odinId ? new DotYouClient({ hostIdentity: odinId, api: ApiType.Guest }).getRoot() : dotYouClient.getRoot()}/posts/${
channel.fileMetadata.appData.content.slug
}${isConnected && identity ? '?youauth-logon=' + identity : ''}`
: undefined,
Expand Down Expand Up @@ -133,7 +133,7 @@ export const ToGroupBlock = memo(
const channelLink = useMemo(
() =>
channel
? `${odinId ? new DotYouClient({ loggedInIdentity: odinId, api: ApiType.Guest }).getRoot() : dotYouClient.getRoot()}/posts/${
? `${odinId ? new DotYouClient({ hostIdentity: odinId, api: ApiType.Guest }).getRoot() : dotYouClient.getRoot()}/posts/${
channel.fileMetadata.appData.content.slug
}${isConnected && identity ? '?youauth-logon=' + identity : ''}`
: undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/hooks/feed/useManageSocialFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useManageSocialFeed = (props?: { odinId: string }) => {
};

const getContentReportUrl = () => {
const host = new DotYouClient({ loggedInIdentity: odinId, api: ApiType.Guest }).getRoot();
const host = new DotYouClient({ hostIdentity: odinId, api: ApiType.Guest }).getRoot();

// Fetch the reporting url from the other identities config
return fetch(`${host}/config/reporting`)
Expand Down

0 comments on commit ea9107f

Please sign in to comment.