Event & profile links #653
No reviewers
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#653
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mmalmi/snort:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Event linksto Event & profile links@ -111,0 +113,4 @@
/**
* Convert hex pubkey to bech32 link url
*/
export function profileLink(hex: HexKey, relays?: Array<string> | string) {
This should be removed
@ -164,3 +164,3 @@
}
static fromEvent(ev: TaggedNostrEvent | NostrEvent) {
static fromEvent(ev: TaggedNostrEvent | NostrEvent, prefixHint = NostrPrefix.Event) {
This seems like the wrong approach, if you want to adjust the prefix it would probably be simpler to do it at
encode()
There are a lot of places where i use
fromEvent
but notencode
sinceNostrLink
is passed around a lot, i dont care what the prefix is in those cases (nevent
/note
are both accepted)good point!