]> git.mxchange.org Git - friendica.git/commitdiff
"locked" is boolean
authorMichael <heluecht@pirati.ca>
Sun, 25 Oct 2020 16:59:38 +0000 (16:59 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Oct 2020 16:59:38 +0000 (16:59 +0000)
src/Object/Api/Mastodon/Account.php

index 5bd2743b9e0cb9acb0e724c95dec11682a989d11..f6e66941ac7094a4d3f3c9dfda1e8aad1857c8f0 100644 (file)
@@ -99,7 +99,7 @@ class Account extends BaseEntity
                                $publicContact['nick'] :
                                $publicContact['addr'];
                $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->discoverable    = !$publicContact['unsearchable'];
                $this->group           = ($publicContact['contact-type'] == Contact::TYPE_COMMUNITY);