From 7da5bc66aec536547588bef94b36766408cb1c59 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 9 Sep 2024 13:34:33 +0200 Subject: [PATCH] fix nodeinfo endpoint --- includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 2749ae5da..a214bf147 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -657,11 +657,11 @@ function get_active_users( $duration = 1 ) { // if blog user is disabled if ( is_user_disabled( Users::BLOG_USER_ID ) ) { - return $count; + return (int) $count; } // also count blog user - return $count + 1; + return (int) $count + 1; } /** @@ -689,10 +689,10 @@ function get_total_users() { // if blog user is disabled if ( is_user_disabled( Users::BLOG_USER_ID ) ) { - return $users; + return (int) $users; } - return $users + 1; + return (int) $users + 1; } /**