mirror of
https://github.com/friendica/friendica
synced 2024-11-18 12:23:41 +00:00
Reset pending value when unfollowing a contact
This commit is contained in:
parent
5519b50900
commit
6749ace4b7
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue