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

@@ -10,6 +10,7 @@
namespace IPS\Content\Api\GraphQL;
use \IPS\Api\GraphQL\TypeRegistry;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
@@ -22,6 +23,18 @@ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
*/
abstract class _ItemMutator extends ContentMutator
{
public function args(): array
{
return [
'category' => TypeRegistry::nonNull( TypeRegistry::id() ),
'title' => TypeRegistry::nonNull( TypeRegistry::string() ),
'content' => TypeRegistry::nonNull( TypeRegistry::string() ),
'tags' => TypeRegistry::listOf( TypeRegistry::string() ),
'state' => TypeRegistry::itemState(),
'postKey' => TypeRegistry::string()
];
}
/**
* Mark as read
*
+8
View File
@@ -40,6 +40,13 @@ class _ItemController extends \IPS\Api\Controller
{
$where[] = array( \IPS\Db::i()->in( $class::$databaseTable . '.' . $class::$databasePrefix . $class::$databaseColumnMap['container'], array_map( 'intval', array_filter( explode( ',', \IPS\Request::i()->$containerParam ) ) ) ) );
}
/* IDs */
if ( isset( \IPS\Request::i()->ids ) )
{
$idField = $class::$databaseTable . '.' . $class::$databasePrefix . $class::$databaseColumnId;
$where[] = array(\IPS\Db::i()->in( $idField, array_map( 'intval', explode(',', \IPS\Request::i()->ids ) ) ) );
}
/* Authors */
if ( isset( \IPS\Request::i()->authors ) )
@@ -488,6 +495,7 @@ class _ItemController extends \IPS\Api\Controller
if( !$item->getPoll() )
{
$poll->starter_id = $item->author()->member_id;
$poll->poll_item_class = \get_class( $item );
}
$formatted = array(