From 1380025d4ad2ef9332e0c13bcb1a3683c971fa1a Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 5 Jul 2023 15:31:45 +0200 Subject: [PATCH] always use Followers::add_follower to not ran into inconsistencies --- includes/class-migration.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/includes/class-migration.php b/includes/class-migration.php index d3c0fcb..2e5f19c 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -1,7 +1,6 @@ set_error( $meta ); - } - - $follower->upsert(); - - add_post_meta( $follower->get__id(), '_user_id', $user_id ); + Followers::add_follower( $user_id, $actor ); } } }