mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
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:
parent
093dd70e79
commit
52f5d924b7
3 changed files with 4 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue