Version 5.0.0 beta 3

This commit is contained in:
Neo committed 2025-12-19 16:47:22 -08:00
1 parent f61b0da85d
commit e86153356a
108 files changed
+2927 -1573

No files matched your search

+3 -3
View File
@@ -438,7 +438,7 @@ abstract class Comment extends Content
}
}
if ( IPS::classUsesTrait( $this, 'IPS\Content\Hideable' ) and ( !$this->hidden() or $item->approvedButHidden() ) )
if ( !IPS::classUsesTrait( $this, 'IPS\Content\Hideable' ) or ( !$this->hidden() or $item->approvedButHidden() ) )
{
if ( isset( $item::$databaseColumnMap['last_comment'] ) )
{
@@ -468,14 +468,14 @@ abstract class Comment extends Content
$item->save();
if ( !$item->hidden() and ! $item->approvedButHidden() and $item->containerWrapper() and $item->container()->_comments !== NULL and ( !IPS::classUsesTrait( $item, 'IPS\Content\FuturePublishing' ) OR !$item->isFutureDate() ) )
if ( ( !IPS::classUsesTrait( $item, Hideable::class ) or ( !$item->hidden() and ! $item->approvedButHidden() ) ) and $item->containerWrapper() and $item->container()->_comments !== NULL and ( !IPS::classUsesTrait( $item, 'IPS\Content\FuturePublishing' ) OR !$item->isFutureDate() ) )
{
$item->container()->_comments = ( $item->container()->_comments + 1 );
$item->container()->setLastComment( $this, $item );
$item->container()->save();
}
}
else
elseif( IPS::classUsesTrait( $this, Hideable::class ) )
{
$item->save();