Replace remaining instances of DBA::update('contact') with Contact::update()

- This was breaking the synchronisation between the contact and user-contact tables
This commit is contained in:
Hypolite Petovan 2022-02-21 10:16:38 -05:00
parent 093dd70e79
commit 52f5d924b7
3 changed files with 4 additions and 6 deletions

View file

@ -2747,7 +2747,7 @@ class Contact
public static function removeFollower(array $contact)
{
if (in_array($contact['rel'] ?? [], [self::FRIEND, self::SHARING])) {
DBA::update('contact', ['rel' => self::SHARING], ['id' => $contact['id']]);
self::update(['rel' => self::SHARING], ['id' => $contact['id']]);
} elseif (!empty($contact['id'])) {
self::remove($contact['id']);
} else {