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

[feature] Unsuspending an Account #3539

Open
zxzzxv opened this issue Nov 12, 2024 · 3 comments
Open

[feature] Unsuspending an Account #3539

zxzzxv opened this issue Nov 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@zxzzxv
Copy link

zxzzxv commented Nov 12, 2024

Is your feature request related to a problem ?

While testing out the latest version, I was trying out the reporting system and accidentally suspended a non-test user. The text says account suspensions are irreversible. Are there any plans to make it possible to unsuspend users?

Describe the solution you'd like.

I'd like something like Mastodon where suspends remove all posts and media, and unsuspends means the server can start to federate with that user as normal.

Describe alternatives you've considered.

I have considered just nuking my instance and restarting things since it's still mostly a dev instance. No one but test accounts is following the server now. But it would be nice to be able to unsuspend accounts.

Additional context.

No response

@zxzzxv zxzzxv added the enhancement New feature or request label Nov 12, 2024
@tsmethurst
Copy link
Contributor

Good idea yeah, there's a few technical things we'll have to think about there (like do we still send a Delete message out or not), but we can cross that bridge when we come to it.

@zxzzxv
Copy link
Author

zxzzxv commented Nov 13, 2024

Thanks! Just for clarity this was a remote user not on the server. Are there any manual ways to undo this if I am ok making changes to the db? Or is this all danger zone stuff?

@tsmethurst
Copy link
Contributor

Hummm. Yes, you should be able to undo it by setting suspended_at to NULL for that account in the accounts table.

So something like:

UPDATE accounts
SET suspended_at = NULL
WHERE username = 'some_username'
AND domain = 'some_domain';

You'll then have to restart your GtS instance to invalidate the in-memory cache.

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

No branches or pull requests

2 participants