1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-24 14:44:19 +01:00

added previous version stuff in the docs

This commit is contained in:
Enrico Fasoli 2015-12-10 21:38:25 +01:00
parent 4f343ed813
commit 53c460fe91

View File

@ -87,27 +87,30 @@ __TODO__ implement the ability to manually hide content and to name moderators t
{
"title": "Title of the post",
"date": "date of the post",
"op": "id_of_the_original_poster",
"preference": "id_of_the_preferred_administration",
"text": "Content of the post"
"preference": "optional_id_of_the_preferred_administration",
"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
{
"parent": "id_of_the_parent_object",
"date": "date of the comment"
"preference": "id_of_the_preferred_administration",
"op": "id_of_the_original_poster",
"text": "Content of the post"
"preference": "optional_id_of_the_preferred_administration",
"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
ipfs:boards:vote-for:object_url