App->contact is now removed

This commit is contained in:
Michael 2021-07-24 11:49:11 +00:00
commit 30aad250df
16 changed files with 65 additions and 54 deletions

View file

@ -890,7 +890,8 @@ function photos_content(App $a)
if (!$remote_contact && local_user()) {
$contact_id = $_SESSION['cid'];
$contact = $a->contact;
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id, 'uid' => $owner_uid, 'blocked' => false, 'pending' => false]);
}
if ($user['hidewall'] && (local_user() != $owner_uid) && !$remote_contact) {