Open sabyasachi opened 2 years ago
Thanks @sabyasachi.
An initial description of the user story could be:
COMMENTS_XTD_ALLOW_COMMENT_DELETION = True
.remove.html
and removed.html
templates. They will be used when not using the JavaScript plugin.removed
by setting the is_removed
attribute of the comment to True
. comment_removal_received
to allow other apps do something additional when the a user sends a comment removal: maybe deleting the content of the comment
attribute, or whatnot. So that signal must be sent within the user-request-comment-removal controller.comment.user
matches the authenticated user, the remove.html
template will display a confirmation button to remove the comment. Once the user clicks the button, the removed.html
template will confirm the user that comment has been removed.remove.html
template should request the user to provide the email used to post the comment. In the controller, if the email provided doesn't match the comment's user_email
attribute, it should simply ignore the request, but will inform the user that a confirmation email has been sent. The confirmation email shall be requested only when the email address provided by the user matches the comment's user_email
.urlpatterns
.Let me know if I missed anything important. We could go further in detail. That's just a bullet point description of what shall be done. If anyone feels like working on it, please, feel free to ask. Otherwise I will do it sometime in the future.
@danirus Is this issue still open ? if yes, I can definitely work on this.
Sounds good @callmeUmer. I assign it to you. Feel free to reach out here or by email (it is in my commits).
Creating a separate ticket as discussed in https://github.com/danirus/django-comments-xtd/issues/162.
Users should be able to delete their own comments.
Any workaround till then?