Feat/threads author pages#3050
Conversation
Appwrite WebsiteProject ID: Website (appwrite/website)Project ID: Tip Sites support three domain rule types: Active deployment, Git branch, and Redirect |
Greptile SummaryThis PR adds author profile pages for the Threads feature (
Confidence Score: 4/5The author pages feature itself is solid, but the icon changes introduce a contradictory state between the type definitions and the sprite that should be resolved before merge. The
Important Files Changed
Reviews (4): Last reviewed commit: "Fix icon font ordering: use inline SVG f..." | Re-trigger Greptile |
| return (await databases.getDocument( | ||
| PUBLIC_APPWRITE_DB_MAIN_ID, | ||
| 'authors', | ||
| discordId | ||
| )) as unknown as DiscordAuthor; |
There was a problem hiding this comment.
PUBLIC_APPWRITE_COL_AUTHORS_ID env var added but never consumed
PUBLIC_APPWRITE_COL_AUTHORS_ID is documented in .env.example, but getAuthor still passes the literal string 'authors' as the collection ID. In any environment where the actual Appwrite collection is not named exactly "authors", every request to /threads/authors/[id] will throw a 404/collection-not-found error from Appwrite. The fix is to import PUBLIC_APPWRITE_COL_AUTHORS_ID from $env/static/public and use it here, matching the pattern used for PUBLIC_APPWRITE_COL_THREADS_ID and PUBLIC_APPWRITE_COL_MESSAGES_ID.
… output from main, restore mongo type


What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)