-
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? |
includes/class-activitypub.php
Outdated
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
899bf53
to
4cbd132
Compare
CHANGELOG.md
Outdated
@@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
|
|||
* Comment counts get updated when the plugin is activated/deactivated/deleted | |||
* Added a filter to make custom comment types manageable in WP.com Calypso | |||
* Cleanup of option values when the plugin is uninstalled |
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.
this is in the wrong version now
readme.txt
Outdated
@@ -155,6 +155,7 @@ For reasons of data protection, it is not possible to see the followers of other | |||
|
|||
* Added: Comment counts get updated when the plugin is activated/deactivated/deleted | |||
* Added: A filter to make custom comment types manageable in WP.com Calypso | |||
* Added: Cleanup of option values when the plugin is uninstalled |
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.
wrong version!
Proposed changes:
Is there more data that we add, that should be removed here?