mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:03:41 +00:00
Remove contact record instead of setting rel = 0 in Contact::revokeFollow
This commit is contained in:
parent
c4a4473cd0
commit
b0d8136b00
1 changed files with 5 additions and 1 deletions
|
@ -872,7 +872,11 @@ class Contact
|
||||||
// A null value here means the remote network doesn't support explicit follow revocation, we can still
|
// A null value here means the remote network doesn't support explicit follow revocation, we can still
|
||||||
// break the locally recorded relationship
|
// break the locally recorded relationship
|
||||||
if ($result !== false) {
|
if ($result !== false) {
|
||||||
DBA::update('contact', ['rel' => $contact['rel'] == self::FRIEND ? self::SHARING : self::NOTHING], ['id' => $contact['id']]);
|
if ($contact['rel'] == self::FRIEND) {
|
||||||
|
self::update(['rel' => self::SHARING], ['id' => $contact['id']]);
|
||||||
|
} else {
|
||||||
|
self::remove($contact['id']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in a new issue