Update includes/class-migration.php

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
Matthias Pfefferle 2023-04-28 18:13:59 +02:00 committed by GitHub
parent 9cd33ad544
commit be73f99b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,8 +62,8 @@ class Migration {
foreach ( get_users( array( 'fields' => 'ID' ) ) as $user_id ) {
$followers = get_user_meta( $user_id, 'activitypub_followers', true );
if ( $followes ) {
foreach ( $followes as $follower ) {
if ( $followers ) {
foreach ( $followers as $follower ) {
Collection\Followers::add_follower( $user_id, $follower );
}
}