use the singe attribute on the get_post_meta function
Some checks are pending
PHP_CodeSniffer / phpcs (push) Waiting to run
Unit Testing / phpunit (5.6, 6.2) (push) Waiting to run
Unit Testing / phpunit (7.0) (push) Waiting to run
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
Some checks are pending
PHP_CodeSniffer / phpcs (push) Waiting to run
Unit Testing / phpunit (5.6, 6.2) (push) Waiting to run
Unit Testing / phpunit (7.0) (push) Waiting to run
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
This commit is contained in:
parent
99d66fa138
commit
0fad06f104
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Follow_Request extends Base_Object {
|
|||
* Prepere the sending of the follow request response and hand it over to the sending handler.
|
||||
*/
|
||||
public function send_response( $type ) {
|
||||
$user_id = get_post_meta( $this->get__id(), 'activitypub_user_id' )[0];
|
||||
$user_id = get_post_meta( $this->get__id(), 'activitypub_user_id', true );
|
||||
$user = Users::get_by_id( $user_id );
|
||||
|
||||
$follower_id = wp_get_post_parent_id( $this->get__id() );
|
||||
|
|
Loading…
Reference in a new issue