Closed Namaskar-1F64F closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/alwaysbegrowing/stoodbot/FmdAsmS8UkWqA7YrqzawucrnbofW
✅ Preview: https://stoodbot-git-fix-user-addressing-alwaysbegrowing.vercel.app
Nice, but is the DB missing big chunks of user info or something?
This specific issue is caused by people that do not have a username set in Telegram. Usernames are optional, but the code was using them for display purposes. A first name is required and a last name is optional.
it looks like they are indeed broken, an empty username is passed to the tg link & the more button
if you want to merge this sooner than later, i can fix this in a later pr
I never have seen or used the web interface 🙃
Well, since my last fix was so well received, I decided to make it work more better hopefully. I noticed
/members
doesn't respect first/last names and I looked through the code and couldn't find any other place that seemed like it needed updating. There is one place that's using username to query the DB, but it seems like it's working fine with people who don't have a username set so far so 🦐