1
0
Fork 0

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
commit 52f5d924b7
3 changed files with 4 additions and 6 deletions

View file

@ -445,7 +445,7 @@ class Notifier
$condition = ['network' => Protocol::DFRN, 'uid' => $owner['uid'], 'blocked' => false,
'pending' => false, 'archive' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
$contacts = DBA::toArray(DBA::select('contact', ['id', 'url', 'addr', 'name', 'network', 'protocol'], $condition));
$contacts = DBA::selectToArray('contact', ['id', 'url', 'addr', 'name', 'network', 'protocol'], $condition);
$conversants = array_merge($contacts, $participants);