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();
+8 -2
View File
@@ -1435,12 +1435,18 @@ abstract class Content extends ActiveRecord
/**
* Get quote and mention notifications
*
* @param string $content The content
* @param string|null $content The content
* @return array array( 'quotes' => array( ... member IDs ... ), 'mentions' => array( ... member IDs ... ), 'embeds' => array( ... member IDs ... ) )
*/
protected static function _getQuoteAndMentionIdsFromContent( string $content ): array
protected static function _getQuoteAndMentionIdsFromContent( ?string $content ): array
{
$return = array( 'quotes' => array(), 'mentions' => array(), 'embeds' => array() );
/* If we have no content, don't bother with this */
if( empty( $content ) )
{
return $return;
}
$document = new DOMDocument( '1.0', 'UTF-8' );
if ( @$document->loadHTML( DOMDocument::wrapHtml( '<div>' . $content . '</div>' ) ) !== FALSE )
+5
View File
@@ -99,6 +99,11 @@ class Tag extends Model
*/
public static ?string $databaseColumnEnabledDisabled = 'enabled';
/**
* @brief [Node] Order Database Column
*/
public static ?string $databaseColumnOrder = 'text_seo';
/**
* @brief Cover Photo Storage Extension
*/