diff --git a/following.php b/inc/following.php similarity index 80% rename from following.php rename to inc/following.php index ce688aa..6c0e734 100644 --- a/following.php +++ b/inc/following.php @@ -8,7 +8,10 @@ function request_follow( $actor_id, $object ) { global $wpdb; return $wpdb->insert( 'activitypub_following', - array( 'actor_id' => $actor_id, 'object' => wp_json_encode( $object ) ) + array( 'actor_id' => $actor_id, + 'object' => wp_json_encode( $object ), + 'state' => $PENDING + ) ); }