mirror of
https://github.com/friendica/friendica
synced 2025-05-24 11:44:14 +02:00
Add feedback :-)
This commit is contained in:
parent
89a085a12c
commit
462f76352e
4 changed files with 16 additions and 10 deletions
|
@ -2759,7 +2759,7 @@ class Contact
|
|||
|
||||
public static function removeFollower(array $contact)
|
||||
{
|
||||
if (!empty($contact['rel']) && (($contact['rel'] == self::FRIEND) || ($contact['rel'] == self::SHARING))) {
|
||||
if (in_array($contact['rel'] ?? [], [self::FRIEND, self::SHARING])) {
|
||||
DBA::update('contact', ['rel' => self::SHARING], ['id' => $contact['id']]);
|
||||
} elseif (!empty($contact['id'])) {
|
||||
self::remove($contact['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue