Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+8 -6
View File
@@ -34,6 +34,7 @@ class _members extends \IPS\Api\Controller
* GET /core/members
* Get list of members
*
* @apiparam string ids Comma-delimited list of member IDs
* @apiparam string sortBy What to sort by. Can be 'joined', 'name', 'last_activity' or leave unspecified for ID
* @apiparam string sortDir Sort direction. Can be 'asc' or 'desc' - defaults to 'asc'
* @apiparam string name (Partial) user name to search for
@@ -50,6 +51,12 @@ class _members extends \IPS\Api\Controller
/* Where clause */
$where = array( array( 'core_members.email<>?', '' ) );
/* Get members by the id/ids */
if ( isset( \IPS\Request::i()->ids ) )
{
$where[] = array( \IPS\Db::i()->in( 'member_id', array_map( 'intval', explode( ',', \IPS\Request::i()->ids ) ) ) );
}
/* Are we searching? */
if( isset( \IPS\Request::i()->name ) )
{
@@ -568,12 +575,7 @@ class _members extends \IPS\Api\Controller
/* Make sure follow app/area/id is valid (Phil I'm looking at you) */
try
{
$classToFollow = 'IPS\\' . \IPS\Request::i()->followApp . '\\' . mb_ucfirst( \IPS\Request::i()->followArea );
if( !class_exists( $classToFollow ) or !array_key_exists( \IPS\Request::i()->followApp, \IPS\Application::applications() ) )
{
throw new \OutOfRangeException;
}
$classToFollow = \IPS\core\Followed\Follow::getClassToFollow( \IPS\Request::i()->followApp, \IPS\Request::i()->followArea );
$thingToFollow = $classToFollow::load( (int) \IPS\Request::i()->followId );
}