Skip to content

Commit

Permalink
fix nodeinfo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Sep 9, 2024
1 parent c180644 commit 7da5bc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down

1 comment on commit 7da5bc6

@melroy89
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @pfefferle

Please sign in to comment.