Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -90,13 +90,6 @@ class _MarkTopicSolved extends \IPS\Node\Api\GraphQL\NodeMutator
if( $args['solved'] )
{
$topic->toggleSolveComment( $post->pid, TRUE );
if( $post->author()->member_id != \IPS\Member::loggedIn()->member_id )
{
$notification = new \IPS\Notification( \IPS\Application::load( 'core' ), 'best_answer', $topic, array( $post ), array( $post->author()->member_id ) );
$notification->recipients->attach( $post->author() );
$notification->send();
}
}
else if ( $topic->mapped('solved_comment_id') )
{
@@ -128,7 +128,7 @@ class _Topics
$orderBy = 'last_post';
}
$sortBy = "{$orderBy} {$args['orderDir']}";
$sortBy = \IPS\forums\Topic::$databaseTable . '.' . \IPS\forums\Topic::$databasePrefix . "{$orderBy} {$args['orderDir']}";
$offset = max( $args['offset'], 0 );
$limit = min( $args['limit'], 50 );
+5 -1
View File
@@ -229,6 +229,10 @@ class _forums extends \IPS\Node\Api\NodeController
$forum->can_view_others = \IPS\Request::i()->can_see_others;
}
return parent::_createOrUpdate( $forum );
$forum = parent::_createOrUpdate( $forum );
unset( \IPS\Data\Store::i()->forumsHavePasswords );
return $forum;
}
}
+4
View File
@@ -195,6 +195,10 @@ class _topics extends \IPS\Content\Api\ItemController
{
throw new \IPS\Api\Exception( 'NO_FORUM', '1F294/2', 400 );
}
if ( !$forum->sub_can_post )
{
throw new \IPS\Api\Exception( 'NO_PERMISSION', '2F294/C', 403 );
}
/* Get author */
if ( $this->member )