Add a comment
Last updated
Was this helpful?
Last updated
Was this helpful?
You can add comments by appending them to the appendable data associated with the current page.
The plugin fetches an immutable data writer handle.
controller.js
The plugin stores the comment as immutable data using the immutable data writer handle.
controller.js
The payload parameter contains the public name you selected, your comment and the current timestamp in JSON format.
controller.js
The plugin saves the data map of the comment as immutable data on the SAFE Network.
controller.js
The plugin fetches a structured data handle for the comment you want to add.
controller.js
The name parameter will be the public name you selected combined with the current timestamp and a random string. The actual ID of the structured data will be the hash of the name parameter.
The type tag will be 501 (versioned) because the editable comments plugin lets you see the previous versions of each comment.
The payload parameter will contain the public name you selected, your comment and the current timestamp in JSON format (stored as a base64 string).
controller.js
The plugin saves the structured data representing your comment to the SAFE Network.
controller.js
The plugin fetches a data identifier handle using the structured data handle representing your comment.
controller.js
The plugin appends the data identifier handle representing your comment to the appendable data of the current page.
controller.js
The plugin drops the data identifier handle representing your comment.
controller.js
controller.js
controller.js
If the current page is using the , the plugin will store your new comment using the . This means that once a comment is posted, it can't be edited (immutable data doesn't have any owner).
If the current page is using the , the plugin will store your new comment using the . This means that users will be able to edit their own comments.
If the current page is using the , the plugin drops the immutable data writer handle.
If the current page is using the , the plugin drops the structured data handle.
After successfully adding your comment to the appendable data of the current page, the plugin .