Detect and prevent client switch #666

Open
opened 2023-11-03 17:18:33 +00:00 by Giszmo · 0 comments
Contributor

The Problem

I prefer using one client over another but some TextNotes contain deep links to other clients, making it cumbersome to interact with the linked content. To give a simple like, I have to either login on that other client, too or navigate to the linked note using snort.

The Solution

  • When authoring TextNotes, replace all such links with nostr-native links. Pasting https://snort.social/nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn in the editor should result in nostr:nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn (or was it just nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn?)
  • When loading a TextNote with a client specific nostr link, replace it with a native link.
  • Allow opting out in the settings

An Alternative

When clicking a link that contains an nevent/npub/..., show a modal asking

Nostr link detected.
[open in snort]
[open as is]
[ ] remember preference
**The Problem** I prefer using one client over another but [some TextNotes](https://snort.social/nprofile1qqsvm848eu6ay8thh3lura94fvl5j9rv2t9zyguhf8xt7nty95xdzwqys6xjj) contain deep links to other clients, making it cumbersome to interact with the linked content. To give a simple like, I have to either login on that other client, too or navigate to the linked note using snort. **The Solution** - [ ] When authoring TextNotes, replace all such links with nostr-native links. Pasting `https://snort.social/nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn` in the editor should result in `nostr:nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn` (or was it just `nevent1qqszha7e40y2lxzkh7wkzsmyh83dvryshkn7hr96jzmlq4jls907fcceysfwn`?) - [ ] When loading a TextNote with a client specific nostr link, replace it with a native link. - [ ] Allow opting out in the settings **An Alternative** When clicking a link that contains an nevent/npub/..., show a modal asking ``` Nostr link detected. [open in snort] [open as is] [ ] remember preference ```
Kieran added the
enhancement
label 2023-11-09 10:01:27 +00:00
Kieran added the
20k
label 2023-11-09 10:26:10 +00:00
Kieran added the
P2
label 2024-05-27 14:37:18 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Kieran/snort#666
No description provided.