display names instead of pubkeys where possible #6

Open
opened 2 years ago by x1ddos · 6 comments
x1ddos commented 2 years ago
Owner

this is nip-02

this is [nip-02](https://github.com/nostr-protocol/nips/blob/master/02.md)
offbyn commented 2 years ago
Owner

it should already show kind 0 names, the reason it probably does not show any is that the "explore feed" subscription is currently limited to 500 events a7a2acfc0c/src/main.js (L55) and nostrweb doesnt (yet) fetch user info from pubkeys it sees.

for textNotes I would show username, and not nip-02 contact or "petnames".

It seems to be more useful on profile (pubkey) deeplink #8 to show as following

A client may rely on the kind-3 event to display a list of followed people by profiles one is browsing; make lists of suggestions on who to follow based on the contact lists of other people one might be following or browsing; or show the data in other contexts.

also

If one believes a relay will store their events for sufficient time, they can use this kind-3 event to backup their following list and recover on a different device.

it should already show kind 0 names, the reason it probably does not show any is that the "explore feed" subscription is currently limited to 500 events https://git.qcode.ch/nostr/nostrweb/src/commit/a7a2acfc0cd4ee4e02e907aace30e07d32335c8a/src/main.js#L55 and nostrweb doesnt (yet) fetch user info from pubkeys it sees. for textNotes I would show username, and not nip-02 contact or "petnames". It seems to be more useful on profile (pubkey) deeplink https://git.qcode.ch/nostr/nostrweb/issues/8 to show as following > A client may rely on the kind-3 event to display a list of followed people by profiles one is browsing; make lists of suggestions on who to follow based on the contact lists of other people one might be following or browsing; or show the data in other contexts. also > If one believes a relay will store their events for sufficient time, they can use this kind-3 event to backup their following list and recover on a different device.
x1ddos commented 2 years ago
Poster
Owner

true! it already shows names, those which it caught in the first 500.

for textNotes I would show username, and not nip-02 contact or "petnames".

👍 but what if i don't have a username for a pubkey, i.e. i don't follow them. don't you find it useful to see david.erin instead of a8bb3d884d5d90b413d9891fe4c4e46d? it's from the example at the bottom here: https://github.com/nostr-protocol/nips/blob/master/02.md#petname-scheme

true! it already shows names, those which it caught in the first 500. > for textNotes I would show username, and not nip-02 contact or "petnames". 👍 but what if i don't have a username for a pubkey, i.e. i don't follow them. don't you find it useful to see `david.erin` instead of `a8bb3d884d5d90b413d9891fe4c4e46d`? it's from the example at the bottom here: https://github.com/nostr-protocol/nips/blob/master/02.md#petname-scheme
offbyn commented 2 years ago
Owner

but what if i don't have a username for a pubkey

true, if nostrweb doesn't have a name for a pubkey yet, but has a petname it should prob display it… but which name to show if it knows multiple petnames for the same pubkey?

In the future I'd imagine nostrweb should fetch kind 0 for all pubkeys it sees, or fallback to some petname it knows but not sure yet.

> but what if i don't have a username for a pubkey true, if nostrweb doesn't have a name for a pubkey yet, but has a petname it should prob display it… but which name to show if it knows multiple petnames for the same pubkey? In the future I'd imagine nostrweb should fetch kind 0 for all pubkeys it sees, or fallback to some petname it knows but not sure yet.
x1ddos commented 2 years ago
Poster
Owner

which name to show if it knows multiple petnames for the same pubkey?

right. unsure. nostr telegram channel says it's up to the client to pick, but i don't like it.

so, i guess we'll keep this issue about kind 0 events only for now? i.e. try to get as many as possible, without spinning a heatsink fan :)

> which name to show if it knows multiple petnames for the same pubkey? right. unsure. nostr telegram channel says it's up to the client to pick, but i don't like it. so, i guess we'll keep this issue about kind 0 events only for now? i.e. try to get as many as possible, without spinning a heatsink fan :)
x1ddos commented 2 years ago
Poster
Owner

image

![image](/attachments/8f3f14c2-f15f-42be-905e-1128463af61d)
x1ddos added this to the mvp project 2 years ago
offbyn commented 2 years ago
Owner

So, turns out it displays names, but nostrweb forgets it :) and doesn't update old fallbacknames (yet)

So, turns out it displays names, but nostrweb forgets it :) and doesn't update old fallbacknames (yet)
offbyn self-assigned this 2 years ago
x1ddos added the
feature
label 2 years ago
x1ddos added this to the mvp milestone 2 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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: nostr/nostrweb#6
Loading…
There is no content yet.