mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-26 15:04:19 +01:00
added previous version stuff in the docs
This commit is contained in:
parent
4f343ed813
commit
53c460fe91
27
PROTOCOL.md
27
PROTOCOL.md
@ -87,27 +87,30 @@ __TODO__ implement the ability to manually hide content and to name moderators t
|
|||||||
{
|
{
|
||||||
"title": "Title of the post",
|
"title": "Title of the post",
|
||||||
"date": "date of the post",
|
"date": "date of the post",
|
||||||
"op": "id_of_the_original_poster",
|
"preference": "optional_id_of_the_preferred_administration",
|
||||||
"preference": "id_of_the_preferred_administration",
|
"text": "Content of the post",
|
||||||
"text": "Content of the post"
|
"previous": "id_of_optional_previous_version",
|
||||||
|
"crossposting": "id_of_original_post"
|
||||||
}
|
}
|
||||||
|
|
||||||
__Note:__ `op` should only be used for crossposting. When possible, the client
|
|
||||||
should figure out on his own where the post came from
|
|
||||||
|
|
||||||
Optionally a post could have a `text-url` field so that crossposting is
|
|
||||||
possible for lange texts without duplicating data.
|
|
||||||
|
|
||||||
#### Comment
|
#### Comment
|
||||||
|
|
||||||
{
|
{
|
||||||
"parent": "id_of_the_parent_object",
|
"parent": "id_of_the_parent_object",
|
||||||
"date": "date of the comment"
|
"date": "date of the comment"
|
||||||
"preference": "id_of_the_preferred_administration",
|
"preference": "optional_id_of_the_preferred_administration",
|
||||||
"op": "id_of_the_original_poster",
|
"text": "Content of the post",
|
||||||
"text": "Content of the post"
|
"previous": "id_of_optional_previous_version",
|
||||||
|
"crossposting": "id_of_original_comment"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__About Crossposting:__ when crossposting, a post or comment should omit title, text and even
|
||||||
|
other attributes so that they will be fetched from the original post.
|
||||||
|
|
||||||
|
__About Previous Versions:__ when a post or comment is edited, the user should
|
||||||
|
remove the previous version from the lists in his published profile, but link it
|
||||||
|
in the appropriate field so that comments to previous versions don't get lost.
|
||||||
|
|
||||||
#### Vote
|
#### Vote
|
||||||
|
|
||||||
ipfs:boards:vote-for:object_url
|
ipfs:boards:vote-for:object_url
|
||||||
|
Loading…
Reference in New Issue
Block a user