New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Contents of removed comments are no longer visible via API for moderators and admins #4693
Comments
Torn about this one, mainly because of the extra complication required in UIs just to view this data, when you can already easily click restore / undelete, and it'd be much faster. For the other two concerns: We've added an API request / dropdown for posts and comments, where you can see the moderation history of an item. So admins / mods can view removed content there, and see the entire history of it too. |
Creators can't restore removed comments, only deleted ones. Restoring deleted comments may expose content that they intended to keep removed for everyone, even if just temporarily. For moderation history, that is still lacking imo. Based on what's available in lemmy-ui, it seems that this is just a modlog excerpt, but modlog is not populated with every individual post/comment that was removed as a result of banning a user with content removal. I haven't looked at the API yet, wouldn't this require a modlog API call for each individual comment? Dealing with recent trolls, often content is removed by community mods prior to admins being made aware, so it is crucial to have easy access to this overview to prevent them from expanding to other communities. |
Could you create an issue for that? I agree each comment / post removed should have a modlog entry.
The modlog already supports filtering by user, eg https://lemmy.ml/modlog?page=1&userId=7904 So we'd just need to add either a dropdown for lemmy-ui to navigate there, either from the post / comment dropdowns, or their profile page.
This would still need a clean UI flow, for: you deleted your comment but want to see it again, but don't want to restore it. The temporarily making it public / private to me seems pretty minor, since it was public before you deleted it anyway. |
Done: #4699
This is only part of the answer though. Frequently I want to see not only present or only removed comments, but the timeline of comments created on a user's profile. The screenshots below are not vanilla lemmy-ui, but they demonstrate the client capabilities. |
That is exactly what the modlog filtered by user shows. I'd need other devs to chime in on this one. |
Requirements
Summary
#4503 removed contents of removed/deleted comments from API responses.
This is generally a big improvement, as it will cover a lot of situations where comment contents should no longer be visible, like unintentional information disclosure, removal of offensive content, or otherwise redacted information.
For some people however it should be possible to see removed/deleted comment contents.
As there are several valid use cases for this, I consider this a regression.
I believe visibility of deleted comment contents for site admins is the only request that is debatable, and depending on the instance it might be desirable to not expose this information to all site admins and restrict it to people with DB access.
In that case I believe this should be configurable through the configuration file to either allow or not allow access to contents.
After a couple days there is a scheduled task permanently removing contents of deleted comments anyway, so this will not expose very old comment contents.
For completeness, I want to mention that reports already contain a copy of the content at the time of the report, so this does not currently allow people to evade the report system by deleting their comment before it receives moderator attention.
Steps to Reproduce
/api/v3/user
Technical Details
N/A
Version
0.19.4-beta6
Lemmy Instance URL
voyager.lemmy.ml
The text was updated successfully, but these errors were encountered: