From db5c669254b9ddc6d83f56ffe96963be00f547ed Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 4 Sep 2018 22:21:22 -0600 Subject: [PATCH] Move following.php to correct directory --- following.php => inc/following.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename following.php => inc/following.php (80%) 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 + ) ); }