From: Hypolite Petovan Date: Sat, 21 Jan 2023 03:11:14 +0000 (-0500) Subject: Reset pending value when unfollowing a contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6749ace4b72ed6062a75a4ea01e809ee1804983c;p=friendica.git Reset pending value when unfollowing a contact --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 0f953a0b33..cfd25a1333 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -3291,7 +3291,7 @@ class Contact if ($contact['rel'] == self::SHARING || in_array($contact['network'], [Protocol::FEED, Protocol::MAIL])) { self::remove($contact['id']); } else { - self::update(['rel' => self::FOLLOWER], ['id' => $contact['id']]); + self::update(['rel' => self::FOLLOWER, 'pending' => false], ['id' => $contact['id']]); } Worker::add(Worker::PRIORITY_LOW, 'ContactDiscoveryForUser', $contact['uid']);