8000 Expand NIP-24 to support organization flag and fields on Kind 0 notes. by htsula · Pull Request #1905 · nostr-protocol/nips · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Expand NIP-24 to support organization flag and fields on Kind 0 notes. #1905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

htsula
Copy link
@htsula htsula commented May 3, 2025

Added many fields to user metadata to make possible many useful features for businesses and other organization accounts.

Added many fields to user metadata to make possible many useful features for businesses and other organization accounts.
@staab
Copy link
Member
staab commented May 5, 2025

I'm fine with this in principle, but I would put the address stuff at the top level rather than nested under org info. Also, maybe a "type" field with some options would be better than a boolean. Is this implemented anywhere?

@htsula
Copy link
Author
htsula commented May 6, 2025

I'm fine with this in principle, but I would put the address stuff at the top level rather than nested under org info.

I thought of that, but I thought it would be better for address stuff to stay exclusive to orgs. Otherwise I can see a scenario where most client devs just give you an address input as part of your sign up process, then users from centralized platforms just enter their address because they are used to giving info to companies, not realizing they are doxxing their exact home address to everyone.

And to be honest, I don't think any individual user should, or wants to, have their street address in their public profile.

Also, maybe a "type" field with some options would be better than a boolean.

Honestly I considered it would be simpler to just check the existence of an orgInfo object rather than require a flag. Or moving the orgType field to the top level would work just as well. It just felt cleaner this way.

Is this implemented anywhere?

No.

@fiatjaf
Copy link
Member
fiatjaf commented May 6, 2025

Better use a new kind, like 10070, that wouldn't clutter kind:0s with information that won't interest 99% of users but they will be forced to download. It is very easy for a client that is interested in this information to fetch from another kind dedicated to it.

@htsula
Copy link
Author
htsula commented May 7, 2025

Better use a new kind, like 10070, that wouldn't clutter kind:0s with information that won't interest 99% of users but they will be forced to download. It is very easy for a client that is interested in this information to fetch from another kind dedicated to it.

Curious why you think it won't interest 99% of users.

  1. I think at least the flag needs to be present in the kind 0 because the flag part is a very relevant disclosure similar to the bot flag and a single boolean flag is very much a worthwhile tradeoff considering it could save a bunch of disinterested users from downloading a whole bunch of other notes from the account.

  2. If a user is already downloading the kind 0 of a local restaurant, I would think the address, and its category would be the single most requested information about it, far more than the birthday for individual accounts. There isn't a lot of irrelevant info in here right now.

  3. Most of the data savings are negated by the fact that if they don't think users will see their address, businesses will include it in their bio anyways (I'm speaking from experience as someone with a brick & mortar business on nostr). I think bundling it into kind 0 is necessary for fast adoption by devs so businesses don't resort to duplicating addresses into both bio and the field in a different kind.

When developing, devs will look at all the fields and handle them all, if in kind 0, but if it's a different kind, only devs for business specific apps will use it. I think address and sector is important enough that every new client should show it in some way, even if they just concat the fields into the bio. The address of a physical business or local organization is relevant to 99% of the people who open their profile, not the other way around.

It is nice that it can enable the creation of many new apps, but even just for a Twitter clone it's essential info so I think putting it in kind 0 is better.

@fiatjaf
Copy link
Member
fiatjaf commented May 8, 2025

In the context of a microblogging app if you just happen to see a post by some restaurant it is very unlikely that you're planning on going to that restaurant tonight, so the address is completely unnecessary. Remember that the kind:0 has to be downloaded by everybody who even sees a glimpse of profile, not only those who click on it.

And even if you click on someone's microblogging post that doesn't mean you want to visit them.

In the context of an app about restaurants or restaurant reviews or geotagging etc that is different of course.

I agree with you that birthdays shouldn't be here. In fact most fields shouldn't be here. kind:0 ideally should be just name and picture. It's just that a birthday is small enough it's harder to make the case for a new kind just for birthdays, so we're left with a bad outcome.

I disagree that having this field will stop restaurants from writing their address in their about. Most microblogging clients won't support this anyway, so if restaurants want their address to be seen in microblogging clients they will have to use the about field. Now if any client does want to support the address stuff then it should be super easy to fetch a new kind together with kind:0 and display the information together.

A flag on kind:0 to point to the existence of an address kind sounds like a good compromise to me (even though I think interested clients could probably just ask for the address kind for everybody directly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0