Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get Display Name of bsky profile #30

Closed
Tauheed-Elahee opened this issue Jan 13, 2025 · 1 comment
Closed

Cannot get Display Name of bsky profile #30

Tauheed-Elahee opened this issue Jan 13, 2025 · 1 comment

Comments

@Tauheed-Elahee
Copy link

Tauheed-Elahee commented Jan 13, 2025

In the Next Steps section of the tutorial found here (link: https://atproto.com/guides/applications) it states the following as the first exercise:

Sync the profile records of all users so that you can show their display names instead of their handles.

I know how it is supposed to work. The database should have another column for bsky profile names. Then when making the html file, it should get the display name from the database.

I cannot find a way to do this.

I get the following errors:

When I add authorName to db.ts, ingesters.ts, and routes.ts I get the following error:

Object literal may only specify known properties, and 'authorName' does not exist in type 'InsertExpression<DatabaseSchema, "status">'.ts(2353)

And when I try to access it from home.ts I get the following error:

Property 'authorName' does not exist on type 'Status'.ts(2339)

I also cannot find a way to get the display name of a bsky profile when I need to insert it to the database. The agent object has many methods but none get the display name. After getting the record for the bsky profile. I do not have a way to access the displayName member of the Profile interface found in lexicons/types/apps/bsky/actor/profile.ts

@Tauheed-Elahee
Copy link
Author

I made a typeo. 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant