Skip to content

[FR] Mechanism for Modification or Removal of Comments #57

@3underscoreN

Description

@3underscoreN

Introduction 介紹

Briefly state the feature you want to see in The Vale.
簡短介紹一下你希望在「山谷」看到的新功能。

I propose a mechanism for anonymous users to be able to edit, or delete their comments.

Content 內容

Please state details about your feature request. For example, what problem does your proposed feature solve? How should we implement these features? You can add pictures if you want to.
請詳述新功能的內容。例如說,這個新功能可以解決什麼甚麼問題?我們應該怎麼樣實現這個功能?如有需要,可以輔以圖片說明。

Right now, users are unable to modify or delete their data (i.e. comments), which is not very ideal. It would be great if users can pass a "token" of some kind (either generated or specified by the user) so that they are still able to control the comments after posting.

The mechanism can be as follows:

  1. User creates a comment. During creation, they specify a "token" for the comment:
    e.g. token: 3nishandsome

  2. User keeps the token secretly. The token is then salted and added to the database
    e.g. token: 3nishandsome - very fancy hashing allgorithm + salt -> thisistotallyhashed -> store in db

  3. Before editing or deletion, they will be required to enter the token.

Additional context 補充內容

Add any other context about the problem here.
如果有其他補充內容的話可以在這裏說明。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions