Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Release] Hotfix 2.24.6 => 2.24.7 (patch) (#11537)
* chore: bump version to 2.24.7 * fix(Lens): update profile typings according to graphql schema (#11536) closes #11535 * fix: typing (#11538) --------- Co-authored-by: Wukong Sun <158803171+swkatmask@users.noreply.github.com>
- Loading branch information
1 parent
58d57f1
commit 27d368e
Showing
9 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import type { LensBaseAPI } from '@masknet/web3-providers/types' | ||
import urlcat from 'urlcat' | ||
|
||
export function getLensterLink(handle: string) { | ||
return urlcat('https://hey.xyz/u/:handle', { handle }) | ||
} | ||
|
||
export function getProfileAvatar(profile: LensBaseAPI.Profile | undefined) { | ||
const picture = profile?.metadata?.picture | ||
if (!picture) return | ||
if ('optimized' in picture) return picture.optimized?.uri || picture.raw.uri | ||
return picture.image.optimized?.uri || picture.image.raw.uri | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ const LensProfileQuery = ` | |
} | ||
... on NftImage { | ||
image { | ||
optimized { | ||
uri | ||
} | ||
raw { | ||
uri | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters