Skip to content

fix: sanitize avatar initials source when name contains emoji - #2167

Merged
Philipinho merged 1 commit into
docmost:mainfrom
daysus:fix/avatar-initials-emoji-name
May 8, 2026
Merged

Philipinho merged 1 commit into
docmost:mainfrom
daysus:fix/avatar-initials-emoji-name

Conversation

@daysus

@daysus daysus commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Sanitize the display name used for avatar initials by removing non-letter/number symbols before passing it to Mantine Avatar.
  • This preserves expected initials generation when names include emoji while keeping the original name for alt text.

Fixes #462

Testing

  • pnpm exec nx run client:build

@Philipinho
Philipinho merged commit c66c08f into docmost:main May 8, 2026
1 check passed
@Philipinho

Copy link
Copy Markdown
Member

Thanks for contributing.

@Philipinho

Copy link
Copy Markdown
Member

@daysus please feel free to send me a mail (in bio). I will extend you an enterprise license. Thanks for contributing once again. I appreciate it.

@daysus

daysus commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks Philipinho, I really appreciate that. I just sent you an email. from: (d*ys@gil.com)

Yundi339 pushed a commit to Yundi339/docmost that referenced this pull request Jun 18, 2026
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

Successfully merging this pull request may close these issues.

[Bug] Emoji in auto generated avatar

2 participants