"locked" is boolean
This commit is contained in:
parent
13b14bff91
commit
72efcc8169
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class Account extends BaseEntity
|
||||||
$publicContact['nick'] :
|
$publicContact['nick'] :
|
||||||
$publicContact['addr'];
|
$publicContact['addr'];
|
||||||
$this->display_name = $publicContact['name'];
|
$this->display_name = $publicContact['name'];
|
||||||
$this->locked = $publicContact['manually-approve'] ?? !empty($apcontact['manually-approve']);
|
$this->locked = (bool)$publicContact['manually-approve'] ?? !empty($apcontact['manually-approve']);
|
||||||
$this->bot = ($publicContact['contact-type'] == Contact::TYPE_NEWS);
|
$this->bot = ($publicContact['contact-type'] == Contact::TYPE_NEWS);
|
||||||
$this->discoverable = !$publicContact['unsearchable'];
|
$this->discoverable = !$publicContact['unsearchable'];
|
||||||
$this->group = ($publicContact['contact-type'] == Contact::TYPE_COMMUNITY);
|
$this->group = ($publicContact['contact-type'] == Contact::TYPE_COMMUNITY);
|
||||||
|
|
Loading…
Reference in a new issue