mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Skip server ignored check when contact gsid is empty in Module\Contact\Profile
This commit is contained in:
parent
0219d200a5
commit
3d13db1f2c
1 changed files with 6 additions and 0 deletions
|
@ -267,7 +267,13 @@ class Profile extends BaseModule
|
|||
|
||||
$insecure = $this->t('Private communications are not available for this contact.');
|
||||
|
||||
// @TODO: Figure out why gsid can be empty
|
||||
if (empty($contact['gsid'])) {
|
||||
$this->logger->notice('Empty gsid for contact', ['contact' => $contact]);
|
||||
}
|
||||
|
||||
$serverIgnored =
|
||||
$contact['gsid'] &&
|
||||
$this->userGServer->isIgnoredByUser($this->session->getLocalUserId(), $contact['gsid']) ?
|
||||
$this->t('This contact is on a server you ignored.')
|
||||
: '';
|
||||
|
|
Loading…
Reference in a new issue