This repository was archived by the owner on Nov 5, 2024. It is now read-only.
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
username isn't found for a fid route #24
Open
Description
original cast: https://warpcast.com/behkod.eth/0x249d7695
Neynar explorer under "Example FID" is redirecting to wrong user. Its treating FID as a username. [Dan's FID is going to user @\3]
Steps to reproduce:
1.) - Go to e.g. explorer.neynar.com/3 [link below]
hints to solve:
1.) go to /src/app/[identifier]
2.) this line is incorrect for both supercast and warpcast:
authorFidCast
? `https://www.supercast.xyz/c/${castHash}`
: `https://www.supercast.xyz/${username}`
}
- figure out why username isn't being retrieved for a fid
const username =
warpcast?.author?.username ??
neynar?.author?.author?.username ??
neynar?.cast?.cast?.author?.username ??
warpcast?.cast?.author?.username ??
null;