Reset pending value when unfollowing a contact
This commit is contained in:
parent
5519b50900
commit
6749ace4b7
|
@ -3291,7 +3291,7 @@ class Contact
|
||||||
if ($contact['rel'] == self::SHARING || in_array($contact['network'], [Protocol::FEED, Protocol::MAIL])) {
|
if ($contact['rel'] == self::SHARING || in_array($contact['network'], [Protocol::FEED, Protocol::MAIL])) {
|
||||||
self::remove($contact['id']);
|
self::remove($contact['id']);
|
||||||
} else {
|
} 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']);
|
Worker::add(Worker::PRIORITY_LOW, 'ContactDiscoveryForUser', $contact['uid']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user