[PR #5407] [MERGED] docs: apply avatar fallback and correct avatar path #14235

Closed
opened 2026-04-13 09:22:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5407
Author: @bytaesu
Created: 10/18/2025
Status: Merged
Merged: 10/18/2025
Merged by: @Bekacru

Base: canaryHead: docs/blog-author-avatar


📝 Commits (3)

  • bfaef45 fix: apply avatar fallback and correct avatar path
  • be7d37e fix: apply optional chaining
  • aeed1ed fix: apply optional chaining

📊 Changes

3 files changed (+14 additions, -11 deletions)

View changed files

📝 docs/app/blog/[[...slug]]/page.tsx (+12 -9)
📝 docs/content/blogs/0-supabase-auth-to-planetscale-migration.mdx (+1 -1)
📝 docs/content/blogs/seed-round.mdx (+1 -1)

📄 Description

This PR updates the component so that a fallback is applied to the author.avatar path in MDX files and fixes incorrectly applied paths.

Going forward, use it like this:

  • If an avatar exists: provide it in author.avatar.
  • If no avatar exists: provide an empty string in author.avatar. The fallback will display the first letter of author.name in uppercase.

Summary by cubic

Add a fallback avatar on blog pages and fix incorrect author avatar paths in MDX. This prevents broken images and shows the author’s initial when no avatar is provided.

  • Bug Fixes
    • Use Avatar with fallback to the first letter of author.name when author.avatar is empty.
    • Correct avatar path in seed-round.mdx; clear avatar in the Supabase migration post to trigger fallback.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5407 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 10/18/2025 **Status:** ✅ Merged **Merged:** 10/18/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/blog-author-avatar` --- ### 📝 Commits (3) - [`bfaef45`](https://github.com/better-auth/better-auth/commit/bfaef457d876b25fd9e0e7ffaad5f0fea14ee859) fix: apply avatar fallback and correct avatar path - [`be7d37e`](https://github.com/better-auth/better-auth/commit/be7d37ef72d66399656207b8a59c940bbe9181fd) fix: apply optional chaining - [`aeed1ed`](https://github.com/better-auth/better-auth/commit/aeed1ed2a5ca0fac6732b35fe65eed1dad909ac3) fix: apply optional chaining ### 📊 Changes **3 files changed** (+14 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/blog/[[...slug]]/page.tsx` (+12 -9) 📝 `docs/content/blogs/0-supabase-auth-to-planetscale-migration.mdx` (+1 -1) 📝 `docs/content/blogs/seed-round.mdx` (+1 -1) </details> ### 📄 Description This PR updates the component so that a fallback is applied to the `author.avatar` path in MDX files and fixes incorrectly applied paths. Going forward, use it like this: - **_If an avatar exists_**: provide it in `author.avatar`. - **_If no avatar exists_**: provide an empty string in `author.avatar`. The fallback will display the first letter of `author.name` in uppercase. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a fallback avatar on blog pages and fix incorrect author avatar paths in MDX. This prevents broken images and shows the author’s initial when no avatar is provided. - **Bug Fixes** - Use Avatar with fallback to the first letter of author.name when author.avatar is empty. - Correct avatar path in seed-round.mdx; clear avatar in the Supabase migration post to trigger fallback. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:22:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14235