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
Modlog should have entries for bulk-removed items, such as a result of a community/instance ban with content removal #4699
Comments
This isn't too difficult to add, as we already do it for individual removals. I'll try to get on this soon. |
I'll add a small note about a problem I faced three days ago. Well, at that moment I realized that I would have to restore each of the 475 removed objects one at a time! 😭
I'm happy I was able to restore everything but I had to do each of those six operations 473 times... At this point, I wonder: wouldn't it be possible to insert a function to restore the removed contents in bulk? 🙏 |
i got a script to cover that exact usecase :/ it also has some heuristic to determine whether a removed post/comment was the result of a community ban with content removal based on the community ban duration in modlog to not restore more than intended. this is however still best effort guesswork. |
@informapirata Could you open up an issue for that one? The |
Ok
Unfortunately, user recovery did not restore the removed content. |
Here: #4721 |
Requirements
Is your proposal related to a problem?
Currently there is no way to track why a certain post or comment is removed when the creator has been community or instance banned with content removal.
Filtering by community modlog won't have any logs for an instance wide ban, filtering by post/comment won't have any logs for a community or instance wide ban.
It also makes it very hard to find content removed as part of the ban without manually traversing the API to find content that is marked as removed in their community, by crawling a person's profile.
Describe the solution you'd like.
Every single post or comment removed should be part of the modlog.
It should be possible to look up the reason for removal for every single post/comment, without having to check item modlog and afterwards person modlog.
It would probably be beneficial to have a relation between the bulk action of performing a ban with content removal and the individual post/comment removals triggered from this.
Depending on the implementation details, this could potentially also make it easier to reverse bans with content removal without restoring content that was already removed prior to the ban.
Content that has already been removed prior to the ban should likely not trigger additional removal modlog entries.
The DB part of this implementation should likely wrap the entire thing into a single transaction if possible to improve performance and ensure consistency.
Describe alternatives you've considered.
e.g. #4693
Additional context
Depending on the case, this can have rather significant DB impact if instead of just changing a bunch of comments to
removed=true
this also inserts a bunch of rows into the database.See also
The text was updated successfully, but these errors were encountered: