comments: rework deleted comments.
Let users see when a post has deleted comments. Show normal users a '[deleted]' placeholder when a comment is deleted. Show the full comment to moderators. Also fix it so that the comment creator can't edit or undelete deleted comments, and users can't vote on or report deleted comments. Finally, hide the creator_id, updater_id, and body of deleted comments in the API.
This commit is contained in:
@@ -15,6 +15,15 @@
|
||||
* You can now see the list of comments and forum posts you've reported to
|
||||
the moderators at <https://danbooru.donmai.us/moderation_reports>.
|
||||
|
||||
* You can now see when a post has deleted comments. Deleted comments are now
|
||||
replaced with the word `[deleted]`, instead of being completely hidden.
|
||||
|
||||
### API Changes
|
||||
|
||||
* Deleted comments now have some of their fields hidden in the API. The
|
||||
`creator_id`, `updater_id`, and `body` fields are hidden if you're not a
|
||||
moderator.
|
||||
|
||||
## 2021-01-12
|
||||
|
||||
### Changes
|
||||
|
||||
Reference in New Issue
Block a user