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

@@ -33,7 +33,7 @@ class _AddConversationUser
/*
* Mutation arguments
*/
public function args()
public function args(): array
{
return [
'id' => TypeRegistry::nonNull( TypeRegistry::id() ),
@@ -70,14 +70,14 @@ class _AddConversationUser
}
catch ( \OutOfRangeException $e )
{
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2', 400 );
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2_graphql', 400 );
}
// Fetch our new member
$member = \IPS\Member::load( $args['memberId'] );
if( !$member->member_id ){
throw new \IPS\Api\GraphQL\SafeException( 'INVALID_MEMBER', '1F294/2', 403 );
throw new \IPS\Api\GraphQL\SafeException( 'INVALID_MEMBER', '1F294/2_graphql', 403 );
}
// Check member limit
@@ -33,7 +33,7 @@ class _LeaveConversation
/*
* Mutation arguments
*/
public function args()
public function args(): array
{
return [
'id' => TypeRegistry::nonNull( TypeRegistry::id() )
@@ -70,7 +70,7 @@ class _LeaveConversation
}
catch ( \OutOfRangeException $e )
{
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2', 400 );
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2_graphl', 400 );
}
return NULL;
@@ -33,7 +33,7 @@ class _RemoveConversationUser
/*
* Mutation arguments
*/
public function args()
public function args(): array
{
return [
'id' => TypeRegistry::nonNull( TypeRegistry::id() ),
@@ -70,7 +70,7 @@ class _RemoveConversationUser
}
catch ( \OutOfRangeException $e )
{
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2', 400 );
throw new \IPS\Api\GraphQL\SafeException( 'NO_MESSAGE', '1F294/2_graphl', 400 );
}
if( $conversation->starter_id !== \IPS\Member::loggedIn()->member_id )