-
Notifications
You must be signed in to change notification settings - Fork 80
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
Clean up options and meta on uninstall #1134
base: trunk
Are you sure you want to change the base?
Conversation
I like to cleanup in general, but this is very destructive and might cause some data loss by accident, even more because it was different before! What about adding a consent layer when the user clicks the remove link or adding a "remove and delete all data" link? |
delete_metadata( 'user', 0, 'activitypub_default_extra_fields', '', true ); | ||
delete_metadata( 'user', 0, 'activitypub_followers', '', true ); | ||
delete_metadata( 'user', 0, 'magic_sig_public_key', '', true ); | ||
delete_metadata( 'user', 0, 'magic_sig_private_key', '', true ); | ||
|
||
delete_metadata( 'post', 0, '_activitypub_actor_json', '', true ); | ||
delete_metadata( 'post', 0, '_activitypub_canonical_url', '', true ); | ||
delete_metadata( 'post', 0, '_activitypub_errors', '', true ); | ||
delete_metadata( 'post', 0, '_activitypub_inbox', '', true ); | ||
delete_metadata( 'post', 0, '_activitypub_user_id', '', true ); | ||
delete_metadata( 'post', 0, 'activitypub_content_warning', '', true ); | ||
delete_metadata( 'post', 0, 'activitypub_content_visibility', '', true ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed: let's split this PR and start with cleaning up the options. I would love to have an export of the followers, before we delete them permanantly.
What do you think @Automattic/fediverse
Proposed changes:
Is there more data that we add, that should be removed here?