Skip to content

Commit

Permalink
Update meta.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jul 25, 2024
1 parent 8507488 commit 00b9102
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/controllers/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export const getAvatar = async (ensName) => {
const resolver = await ethProvider.getResolver(ensName);
const avatar = await resolver?.getText("avatar");
if (!avatar || avatar.length === 0) return null;
if (avatar.startsWith(`eip155`)) {
return null
}
return avatar;
} catch (error) {
console.log(`get Avatar error`, error);
Expand Down

0 comments on commit 00b9102

Please sign in to comment.