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

define a thread #12

Closed
nichoth opened this issue Dec 1, 2021 · 4 comments
Closed

define a thread #12

nichoth opened this issue Dec 1, 2021 · 4 comments

Comments

@nichoth
Copy link

nichoth commented Dec 1, 2021

This is an issue to request a definition of an ssb thread. A thread is distinct from a feed. Does it depend on the text content in a message?

@staltz
Copy link
Member

staltz commented Dec 1, 2021

It should be this, no?

https://github.com/ssbc/ssb-threads#thread-objects

Any message that has its root field or branch field or fork field pointing to the root of the thread can be included in this array

@nichoth
Copy link
Author

nichoth commented Dec 1, 2021

ok, so any message that has a root field pointing at the key of the root message is in a thread. as an example, is that set within the content section of a message? or is it in the value section?

{    
     key: 'abc',
     value: {
         // ...
         content: {
            type: 'post',
            root: 'some-key',
            text: 'woooo',
            mentions: ['my-hash']
        },
     }
}

@nichoth
Copy link
Author

nichoth commented Dec 1, 2021

I've learned it is valid in the content section

@nichoth nichoth closed this as completed Dec 1, 2021
@staltz
Copy link
Member

staltz commented Dec 2, 2021

Yes, everything outside of content is part of the SSB spec and does not change with message types. In other words, the only creative freedom we have is all inside of content

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

No branches or pull requests

2 participants