Skip to content
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

Restoring a user from a ban does not restore removed content #4721

Open
5 tasks done
informapirata opened this issue May 15, 2024 · 0 comments
Open
5 tasks done

Restoring a user from a ban does not restore removed content #4721

informapirata opened this issue May 15, 2024 · 0 comments
Labels
area: moderation enhancement New feature or request
Milestone

Comments

@informapirata
Copy link

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

As suggested by @dessalines , I open a new issue on the problem mentioned here

I'll add a small note about a problem I faced three days ago.
I accidentally banned a user from my instance, resulting in all of his content being deleted.
When I realized the error, I lifted the ban but obviously the contents were now deleted.
This is the right thing, because I can decide to give a second chance to the rightly banned user, but this does not mean that I have to restore his posts.
However, in this case, the ban had occurred by mistake and therefore I felt I had to remedy it by restoring all of his messages: 78 messages and 395 comments!

Describe the solution you'd like.

Well, at that moment I realized that I would have to restore each of the 475 removed objects one at a time! 😭
To do this I had to:

  1. open your profile page,
  2. view all published content (20 for each page),
  3. click on the three dots to the right of each content,
  4. select the restore public (for posts) or restore comment (for comments) item,
  5. manually enter the reason for the restore (the field cannot be empty! 🤬)
  6. and finally click RESET!

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? 🙏

Describe alternatives you've considered.

@Nothing4You 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.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: moderation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants