Remove unneeded code

This commit is contained in:
Michael 2022-01-09 10:43:23 +00:00
parent bbda69a736
commit df45a3b915

View file

@ -2159,7 +2159,7 @@ class Contact
// These fields aren't updated by this routine: // These fields aren't updated by this routine:
// 'sensitive' // 'sensitive'
$fields = ['uid', 'uri-id', 'gsid', 'avatar', 'header', 'name', 'nick', 'location', 'keywords', 'about', 'subscribe', $fields = ['uid', 'uri-id', 'avatar', 'header', 'name', 'nick', 'location', 'keywords', 'about', 'subscribe',
'manually-approve', 'unsearchable', 'url', 'addr', 'batch', 'notify', 'poll', 'request', 'confirm', 'poco', 'manually-approve', 'unsearchable', 'url', 'addr', 'batch', 'notify', 'poll', 'request', 'confirm', 'poco',
'network', 'alias', 'baseurl', 'gsid', 'forum', 'prv', 'contact-type', 'pubkey', 'last-item', 'xmpp', 'matrix']; 'network', 'alias', 'baseurl', 'gsid', 'forum', 'prv', 'contact-type', 'pubkey', 'last-item', 'xmpp', 'matrix'];
$contact = DBA::selectFirst('contact', $fields, ['id' => $id]); $contact = DBA::selectFirst('contact', $fields, ['id' => $id]);
@ -2191,9 +2191,6 @@ class Contact
$uriid = $contact['uri-id']; $uriid = $contact['uri-id'];
unset($contact['uri-id']); unset($contact['uri-id']);
$gsid = $contact['gsid'];
unset($contact['gsid']);
$pubkey = $contact['pubkey']; $pubkey = $contact['pubkey'];
unset($contact['pubkey']); unset($contact['pubkey']);