Version 5.0.0 beta 9

This commit is contained in:
Neo committed 2025-12-19 17:47:00 -08:00
1 parent 214f649f1d
commit 56979f8ee8
202 files changed
+4403 -1123

No files matched your search

+5 -10
View File
@@ -479,7 +479,7 @@ abstract class Comment extends Content
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->$lastCommentAnon = (int) $this->mapped('is_anon');
}
$item->save();
@@ -1035,11 +1035,6 @@ abstract class Comment extends Content
{
Index::i()->index( $this );
}
if( Content\Search\SearchContent::isSearchable( $item ) )
{
$item->clearCachedStatistics();
}
}
/* Send the content items URL to IndexNow */
@@ -1188,7 +1183,7 @@ abstract class Comment extends Content
if ( $item AND IPS::classUsesTrait( $this->item(), 'IPS\Content\Statistics' ) )
{
$item->clearCachedStatistics();
$item->clearCachedStatistics( TRUE );
}
/* Delete any notifications telling people about this */
@@ -1883,7 +1878,7 @@ abstract class Comment extends Content
}
}
if ( ! Output::i()->reduceLinks() )
if ( ! Output::i()->reduceLinks() and $this->canShare() )
{
if ( $this->mapped( 'first' ) )
{
@@ -1921,7 +1916,7 @@ abstract class Comment extends Content
}
}
if( $this->canEdit($member ) or (IPS::classUsesTrait( $this, "\\IPS\\Content\\Hideable" ) and $this->canHide( $member )) or $this->canSplit( $member ) )
if( $this->canEdit( $member ) or ( IPS::classUsesTrait( $this, "\\IPS\\Content\\Hideable" ) and $this->canHide( $member ) ) or $this->canSplit( $member ) )
{
$menu->addSeparator();
}
@@ -1965,7 +1960,7 @@ abstract class Comment extends Content
if( $this->canUnhide($member) )
{
$menu->add( new ContentMenuLink( url: $this->url( 'unhide' )->csrf(), languageString: 'unhide', dataAttributes: [
$menu->add( new ContentMenuLink( url: $this->url( 'unhide' )->csrf(), languageString: ( $this->hidden() === 1 ? 'approve' : 'unhide' ), dataAttributes: [
'data-ipsDialog-destructOnClose' => 'true'
] ) );
}