Skip to content
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

Generic Draft Event #1124

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

vitorpamplona
Copy link
Collaborator

@vitorpamplona vitorpamplona commented Mar 14, 2024

Adds a private draft event kind for any other event type. Clients can search by supported kinds via the k tag

Read here

@arthurfranca
Copy link
Contributor

It may be useful to require an one-letter tag set to an event id/address when it is a comment/reply/referrer draft or empty string when "root" draft, like ['r', '<referenced-event-id-or-address-or-empty-string>']. Then one can fetch the draft of a reply to a specifc note or fetch a root draft.

@vitorpamplona
Copy link
Collaborator Author

Good point, I have added anchor events. I don't think we can ask to have empty rs because this kind should work for non-kind1 events as well.

@staab
Copy link
Member

staab commented Mar 14, 2024

I almost like this, but the e/a tags make me think that this should probably not be generic; drafts should be specified by kind number on a case-by-case basis, since you may want to search for something other than the anchor.

@vitorpamplona
Copy link
Collaborator Author

vitorpamplona commented Mar 14, 2024

I almost like this, but the e/a tags make me think that this should probably not be generic; drafts should be specified by kind number on a case-by-case basis, since you may want to search for something other than the anchor.

People can add other tags to this event at will. These are just the basic ones. The k already filters out things a client can't parse anyway.

Copy link
Contributor

@jb55 jb55 left a comment

Choose a reason for hiding this comment

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

I was looking to have encrypted url attachments but I think I can just add these to the inner draft and remove them when posting. This works for me!

@vitorpamplona
Copy link
Collaborator Author

@mikedilger curious to hear your feedback from the Private Relay list section here. The idea is to have a list of relays to store events that only the author should see. A private outbox if you will.

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.

None yet

4 participants