From df45a3b915be2e87dcd496a461889694a311bab7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 9 Jan 2022 10:43:23 +0000 Subject: [PATCH] Remove unneeded code --- src/Model/Contact.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 1bd57d856..65ee65ab3 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2159,7 +2159,7 @@ class Contact // These fields aren't updated by this routine: // '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', 'network', 'alias', 'baseurl', 'gsid', 'forum', 'prv', 'contact-type', 'pubkey', 'last-item', 'xmpp', 'matrix']; $contact = DBA::selectFirst('contact', $fields, ['id' => $id]); @@ -2191,9 +2191,6 @@ class Contact $uriid = $contact['uri-id']; unset($contact['uri-id']); - $gsid = $contact['gsid']; - unset($contact['gsid']); - $pubkey = $contact['pubkey']; unset($contact['pubkey']);