Handle all kind 0 display-name variants in the Nostr profile editor #270

Merged
raucao merged 1 commits from feature/nostr-profile-display-name-variants into master 2026-11-19 11:18:33 +00:00
1 Commits
Author SHA1 Message Date
raucao c1826a46f4 Handle all kind 0 display-name variants in the Nostr profile editor
CI / Test (pull_request) Successful in 51s
Release Drafter / Update release notes draft (pull_request) Successful in 6s
The editor read only `display_name`/`displayName` and wrote just `display_name` (deleting `displayName`), so profiles using `name` or the deprecated aliases were shown and updated incorrectly.

Read the first present of `display_name`, `displayName`, `name` and `username` (NIP-01/NIP-24 priority) with a fallback to the account display name, and write the edited value to every variant. The key list lives in `NostrManagerService::DISPLAY_NAME_KEYS` and is passed to the Stimulus controller so Ruby and JS stay in sync.
2026-11-19 15:14:29 +04:00