Version 5.0.14

This commit is contained in:
Neo committed 2025-12-19 19:17:57 -08:00
1 parent 5efe744c5f
commit dbd774b30c
364 files changed
+7048 -1377

No files matched your search

+25
View File
@@ -370,6 +370,7 @@ class Member extends ActiveRecord
$this->member_group_id = Settings::i()->guest_group;
$this->mgroup_others = '';
$this->joined = time();
$this->marked_site_read = time();
$this->ip_address = Request::i()->ipAddress();
$this->timezone = 'UTC';
$this->allow_admin_mails = ( Settings::i()->updates_consent_default == 'enabled' );
@@ -3791,6 +3792,30 @@ class Member extends ActiveRecord
{
return (boolean) $this->group['gbw_post_highlight'];
}
/**
* Return the group ID that has highlighting enabled
*
* @return int|null
*/
public function highlightedGroup() : ?int
{
if( !$this->hasHighlightedReplies() )
{
return null;
}
foreach( $this->groups as $groupId )
{
$options = Group::load( $groupId )->g_bitoptions->asArray();
if( $options['gbw_post_highlight'] )
{
return $groupId;
}
}
return null;
}
/**
* Get output for API