damus
damus copied to clipboard
Pin my Note [NIP-51][Feature Request]
User Story
As a pleb Damus user who would like to pin my note on my profile's page, I would like the capability to pin, and unpin one of my notes, so that I can easily display an important note to myself, and my profile's visitors.
Acceptance Criteria
- Damus user can see an option to
Pin Noteby holding down tap on any of the given user's notes, - If Damus user taps on
Pin Note, then user is prompted in a popup titledPin Note to Profile?. Bodytext of popup reads: "This note will appear at the top of your profile, and replace any previously pinned note." - User can select
cancel, orPin - If user selects 'Pin' (purple color button) the selected note is pinned to the top of the user's profile,
- If user selects 'cancel' popup exits, and nothing is changed,
- Pinned notes have a pin icon, and the word Pinned Note displayed above them,
- Timeline of notes is displayed below the pinned note,
- For pinned notes, user has the option to
Remove Pinned Note. User can access this option by holding tap on a pinned note. - If user selects
Remove Pinned Note, then the note pin is removed, and note is no longer displayed at the top of user profile - Add pin attribution in menu/about/credits etc. Pin CC 4.0 attribution (or add/create other pin):
https://www.figma.com/community/file/886554014393250663
By Leonid Tsvetkov
https://creativecommons.org/licenses/by/4.0/
Implementation Utilize NIP-51: https://github.com/nostr-protocol/nips/pull/183 Snort social has implemented pinned feature https://github.com/v0l/snort/pull/255
Mockup:



@BenGWeeks suggested a NIP should be utilized, or created if it doesn't exist.
@joelklabo suggested a new profiled field for pinned note, and that it is preferred to go the NIP route, vs Damus only implementation.
~It could be that pinned note relates to NIP-16 https://github.com/nostr-protocol/nips/blob/master/16.md Replaceable Event kind~
Snort social implementted using NIP-51. Check snort implementation
NIP-51: https://github.com/nostr-protocol/nips/pull/183 Snort feat: pinned notes and bookmarks https://github.com/v0l/snort/pull/255