From 00b910214241587d934b11b3c5ae98a74e8cf6c0 Mon Sep 17 00:00:00 2001 From: serafettin Date: Wed, 24 Jul 2024 22:14:53 -0400 Subject: [PATCH] Update meta.js --- api/src/controllers/meta.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/controllers/meta.js b/api/src/controllers/meta.js index a5f90034..b3223498 100644 --- a/api/src/controllers/meta.js +++ b/api/src/controllers/meta.js @@ -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);