Ability to restore comments in Extension:Comments
Open, Needs TriagePublic

Description

Once a comment is deleted, it's deleted forever. There's no way to easily view the comment, except in Special:Log/comments.

This ability should be added, for example if it was just an accident? Should also be reflected in the log too, like this:

hh:mm, <day> <month> <year> Username ( Talk | Contribs ) restored comment #<commentID> on <blog-name>

Event Timeline

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

This will require a schema change, namely at least the introduction of a new table for deleted comments (Comments_Archive? or something) and changing Comment::delete() to copy the rows over to this new table before deleting them from the main Comments (and Comments_Vote) table(s).

Also then there are the UI considerations. What kind of a user interface should there be for restoring comments? For whole pages there's Special:Undelete as well as the "Restore N revision(s)" subtitle on deleted pages, but comments are conceptually a whole different matter. Perhaps deleted comments could show up for users with the commentadmin user right, either "grayed out" or initially hidden (akin to comments posted by users who are currently on your personal comment block list), with a text like "This comment has been deleted. (View the comment/Undelete it)" or something?

I like @ashley's ideas. That's probably the most practical approach to the issue.