Delete a comment

If you are the website owner, you can delete comments by removing them from the appendable data associated with the current page.

Contents

Delete a comment

Delete a comment from the appendable data

The plugin moves the comment you want to delete to the deleted_data field of the appendable data associated with the current page.

Remove a data item

DELETE /appendable-data/:handleId/:index
controller.js
window.safeAppendableData.removeAt(this._authToken, this._currentPostHandleId, index)

Update the appendable data

The plugin updates the appendable data associated with the current page by sending a POST request to the SAFE Network.

Save appendable data

POST /appendable-data/:handleId
controller.js
window.safeAppendableData.post(this._authToken, this._currentPostHandleId)

Clear all deleted data from the appendable data

The plugin clears the deleted_data field of the appendable data associated with the current page.

Clear all deleted data items

DELETE /appendable-data/clear-deleted-data/:handleId
controller.js
window.safeAppendableData.clearAll(this._authToken, this._currentPostHandleId, true)

Update the appendable data (again)

The plugin updates the appendable data associated with the current page by sending a POST request to the SAFE Network.

Save appendable data

POST /appendable-data/:handleId
controller.js
window.safeAppendableData.post(this._authToken, this._currentPostHandleId)

The plugin then reloads the comments.

results matching ""

    No results matching ""