]> git.mxchange.org Git - friendica.git/commitdiff
Reset pending value when unfollowing a contact
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Jan 2023 03:11:14 +0000 (22:11 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Jan 2023 14:18:17 +0000 (09:18 -0500)
src/Model/Contact.php

index 0f953a0b333b1af6ddd32674f7a2bb758db6983d..cfd25a1333a8267246c85d13c7e180c3bb205177 100644 (file)
@@ -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']);