From 0fad06f1043a6c584939efcf0b93f45afa8f852d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 27 Dec 2023 10:26:52 +0100 Subject: [PATCH] use the singe attribute on the get_post_meta function --- includes/model/class-follow-request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/model/class-follow-request.php b/includes/model/class-follow-request.php index bcb9edf..1b380d2 100644 --- a/includes/model/class-follow-request.php +++ b/includes/model/class-follow-request.php @@ -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() );