Skip to content

Commit

Permalink
Limit it to options
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland committed Jan 27, 2025
1 parent bc58bf2 commit 4cbd132
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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 options, post meta, and user meta when the plugin is uninstalled
* Cleanup of option values when the plugin is uninstalled

### Changed

Expand Down
14 changes: 0 additions & 14 deletions includes/class-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,6 @@ public static function uninstall() {
\remove_filter( 'pre_wp_update_comment_count_now', array( Comment::class, 'pre_wp_update_comment_count_now' ) );
Migration::update_comment_counts( 2000 );

delete_metadata( 'user', 0, '_activitypub_user_identifier', '', true );
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 );

delete_option( 'activitypub_actor_mode' );
delete_option( 'activitypub_attribution_domains' );
delete_option( 'activitypub_authorized_fetch' );
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,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 options, post meta, and user meta when the plugin is uninstalled
* Added: Cleanup of option values when the plugin is uninstalled
* Changed: Hide ActivityPub post meta keys from the custom Fields UI
* Changed: Bumped minimum required PHP version to 7.2
* Changed: Print `_activityPubOptions` in the `wp_footer` action on the frontend.
Expand Down

0 comments on commit 4cbd132

Please sign in to comment.