From 44941365274616eacad64ef8a02faf4b51472b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 26 Dec 2023 10:51:43 +0100 Subject: [PATCH] fix accept/approve typo TODO: one should decide for a clear naming --- includes/handler/class-follow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/handler/class-follow.php b/includes/handler/class-follow.php index a14b36f..4e97653 100644 --- a/includes/handler/class-follow.php +++ b/includes/handler/class-follow.php @@ -61,7 +61,7 @@ class Follow { $follow_request = Follow_Request::save( $follower, $user_id, $activity['id'] ); if ( ! $user->get_manually_approves_followers() ) { - $follow_request->accept(); + $follow_request->approve(); } }