The relay and media server editors compared the configured site URL against the entries in the user's existing event with raw string equality. A trailing slash or a different case therefore made the site entry look missing, so it was prepended again as a duplicate "added" row — even though the status component reported it as already part of the list.
This compares with NostrManagerService.normalize_url instead (stripping surrounding whitespace, a trailing slash and case), matching what the status components and the JS list editor already do. It also adds the missing is_a?(Array) guard on the relay tag selection.
The stored URL is left untouched; only the comparison is normalized, so published events are not silently rewritten.
Fixes the duplicate wss://nostr.kosmos.org entry when the relay is already present as wss://nostr.kosmos.org/.
The relay and media server editors compared the configured site URL against the entries in the user's existing event with raw string equality. A trailing slash or a different case therefore made the site entry look missing, so it was prepended again as a duplicate "added" row — even though the status component reported it as already part of the list.
This compares with `NostrManagerService.normalize_url` instead (stripping surrounding whitespace, a trailing slash and case), matching what the status components and the JS list editor already do. It also adds the missing `is_a?(Array)` guard on the relay tag selection.
The stored URL is left untouched; only the comparison is normalized, so published events are not silently rewritten.
Fixes the duplicate `wss://nostr.kosmos.org` entry when the relay is already present as `wss://nostr.kosmos.org/`.
The relay and media server editors compared the configured site URL
against existing event entries with raw string equality, so a trailing
slash or different case made the site entry look missing and it was
prepended again as a duplicate "added" row. Compare with
NostrManagerService.normalize_url instead, matching the status
components and the JS list editor.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The relay and media server editors compared the configured site URL against the entries in the user's existing event with raw string equality. A trailing slash or a different case therefore made the site entry look missing, so it was prepended again as a duplicate "added" row — even though the status component reported it as already part of the list.
This compares with
NostrManagerService.normalize_urlinstead (stripping surrounding whitespace, a trailing slash and case), matching what the status components and the JS list editor already do. It also adds the missingis_a?(Array)guard on the relay tag selection.The stored URL is left untouched; only the comparison is normalized, so published events are not silently rewritten.
Fixes the duplicate
wss://nostr.kosmos.orgentry when the relay is already present aswss://nostr.kosmos.org/.