Version 5.0.0 beta 8

This commit is contained in:
Neo committed 2025-12-19 17:30:12 -08:00
1 parent 54d5dcd0a0
commit 214f649f1d
483 files changed
+35354 -33568

No files matched your search

+6 -1
View File
@@ -476,7 +476,12 @@ abstract class Comment extends Content
$lastCommentNameField = $item::$databaseColumnMap['last_comment_name'];
$item->$lastCommentNameField = $this->mapped('author_name');
}
if ( IPS::classUsesTrait( $this, 'IPS\Content\Anonymous' ) and isset( $item::$databaseColumnMap['last_comment_anon'] ) and isset( static::$databaseColumnMap['is_anon'] ) )
{
$lastCommentAnon = $item::$databaseColumnMap['last_comment_anon'];
$item->$lastCommentAnon = $this->mapped('is_anon');
}
$item->save();
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() ) )