fix(profiles): fix #1186

This commit is contained in:
mrilyew 2024-12-14 15:19:09 +03:00
parent ba5e2dba3c
commit 4541ce1afe

View file

@ -35,7 +35,7 @@ final class UserPresenter extends OpenVKPresenter
$this->template->_template = "User/deactivated.xml"; $this->template->_template = "User/deactivated.xml";
$this->template->user = $user; $this->template->user = $user;
} else if($this->user->identity->isBlacklistedBy($user)) { } else if($this->user->identity && $this->user->identity->isBlacklistedBy($user)) {
$this->template->_template = "User/blacklisted.xml"; $this->template->_template = "User/blacklisted.xml";
$this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity); $this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity);