Skip to content

NIP-38: User Statuses #737

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

Merged
merged 1 commit into from
Aug 25, 2023
Merged

NIP-38: User Statuses #737

merged 1 commit into from
Aug 25, 2023

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented Aug 24, 2023

This NIP enables a way for users to share live statuses such as what music they are listening to, as well as what they are currently doing: work, play, out of office, etc.

315.md

This NIP enables a way for users to share live statuses such as what
music they are listening to, as well as what they are currently doing:
work, play, out of office, etc.
@jb55 jb55 requested a review from Semisol August 24, 2023 03:00
@vitorpamplona vitorpamplona self-requested a review August 24, 2023 12:13
@vitorpamplona
Copy link
Collaborator

vitorpamplona commented Aug 24, 2023

The status MAY include an r, p, e or a tag linking to a URL, profile, note, or parameterized replaceable event.

We might need to keep updating this NIP with any rendering expectations for these links (are they always links?) if they aren't included as nostr:bech in the content itself.

Otherwise, this looks good.

}
```

Two common status types are defined: `general` and `music`. `general` represent general statuses: "Working", "Hiking", etc.
Copy link
Contributor

@fernandolguevara fernandolguevara Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to share compound statuses in one event, such as 'working out' and 'listening to music'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally had it this way but then i realized it wouldn't work because the expiry times are different.


{
"kind": 30315,
"content": "Intergalatic - Beastie Boys",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this allow for empty text, text containing line breaks, or long text?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its allowed but would be cut off in Damus

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty statuses are equivalent to clearing the status in Damus, could make that explicit

@jb55
Copy link
Contributor Author

jb55 commented Aug 24, 2023

The status MAY include an r, p, e or a tag linking to a URL, profile, note, or parameterized replaceable event.

We might need to keep updating this NIP with any rendering expectations for these links (are they always links?) if they aren't included as nostr:bech in the content itself.

Otherwise, this looks good.

I only handle r links atm but figured to add the others for completeness.

@0xtrr
Copy link

0xtrr commented Aug 24, 2023

Implemented support for this in nostr-tool

@fiatjaf fiatjaf merged commit f7b7b86 into nostr-protocol:master Aug 25, 2023
@fiatjaf fiatjaf changed the title NIP-315: User Statuses NIP-38: User Statuses Aug 25, 2023
@fiatjaf
Copy link
Member

fiatjaf commented Aug 25, 2023

7dc1f02

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.

8 participants