Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -119,6 +119,7 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
'datalayer_event_fired' => 8388608,
|
||||
'new_device_email' => 16777216, // Send an email when a new device is used to log in.
|
||||
'no_solved_reenage' => 33554432, // User does not want to get topic re-engagement emails
|
||||
'datalayer_pii_optout' => 67108864, // User has opted in to having their PII collected by datalayer
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -202,7 +203,7 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
|
||||
if ( !static::$loggedInMember->member_id and isset( \IPS\Request::i()->cookie['ipsTimezone'] ) )
|
||||
{
|
||||
static::$loggedInMember->timezone = \IPS\Request::i()->cookie['ipsTimezone'];
|
||||
static::$loggedInMember->timezone = \IPS\DateTime::getFixedTimezone( \IPS\Request::i()->cookie['ipsTimezone'] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3508,7 +3509,7 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
}
|
||||
$return['reputationPoints'] = $this->pp_reputation_points;
|
||||
$return['photoUrl'] = static::photoUrl( $this->_data, FALSE );
|
||||
$return['photoUrlIsDefault'] = $this->pp_photo_type == 'none' or static::photoUrl( $this->_data, FALSE, FALSE, FALSE ) != $return['photoUrl'];
|
||||
$return['photoUrlIsDefault'] = \in_array( $this->pp_photo_type, [ 'none', 'letter' ] ) or static::photoUrl( $this->_data, FALSE, FALSE, FALSE ) != $return['photoUrl'];
|
||||
$return['coverPhotoUrl'] = $this->pp_cover_photo ? ( (string) \IPS\File::get( 'core_Profile', $this->pp_cover_photo )->url ) : '';
|
||||
$return['profileUrl'] = ( $this->member_id ) ? (string) $this->url() : NULL;
|
||||
if ( !$authorizedMember )
|
||||
@@ -3524,7 +3525,10 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
$return['lastPost'] = $this->member_last_post ? \IPS\DateTime::ts( $this->member_last_post )->rfc3339() : NULL;
|
||||
}
|
||||
|
||||
$return['birthday'] = $this->bday_month ? ( $this->bday_month . '/' . $this->bday_day . ( $this->bday_year ? '/' . $this->bday_year : '' ) ) : NULL;
|
||||
if( !$authorizedMember OR $authorizedMember?->member_id === $this->member_id )
|
||||
{
|
||||
$return['birthday'] = $this->bday_month ? ( $this->bday_month . '/' . $this->bday_day . ( $this->bday_year ? '/' . $this->bday_year : '' ) ) : NULL;
|
||||
}
|
||||
$return['profileViews'] = $this->members_profile_views;
|
||||
$return['customFields'] = $fields;
|
||||
|
||||
@@ -3822,7 +3826,7 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
*/
|
||||
public function recountReputation()
|
||||
{
|
||||
$this->pp_reputation_points = \IPS\Db::i()->select( 'SUM(rep_rating)', 'core_reputation_index', array( 'member_received=?', $this->member_id ) );
|
||||
$this->pp_reputation_points = \IPS\Db::i()->select( 'SUM(rep_rating)', 'core_reputation_index', array( 'member_received=?', $this->member_id ) )->first();
|
||||
$this->save();
|
||||
}
|
||||
|
||||
@@ -5444,7 +5448,7 @@ class _Member extends \IPS\Patterns\ActiveRecord
|
||||
/* Are they enabled for our group? */
|
||||
$sigLimits = explode( ":", $this->group['g_signature_limits'] );
|
||||
|
||||
if( $sigLimits[0] )
|
||||
if( $sigLimits[0] OR $sigLimits[5] == 0 )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user