From: Tobias Diekershoff Date: Sat, 2 Oct 2021 17:19:40 +0000 (+0200) Subject: Merge pull request #10797 from annando/diaspora-deprecated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8dc4499bcfe0adef3a3a4ff77abfe0c5588a3409;p=friendica.git Merge pull request #10797 from annando/diaspora-deprecated Replaced deprecated code from the Diaspora implementation --- 8dc4499bcfe0adef3a3a4ff77abfe0c5588a3409 diff --cc src/Protocol/Diaspora.php index b08fa23c2b,087754dfc9..1daea43fd4 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@@ -1367,9 -1350,9 +1350,9 @@@ class Diaspor 'notify' => $data['notify'], 'poll' => $data['poll'], 'network' => $data['network']]; - DBA::update('contact', $fields, ['addr' => $old_handle]); + Contact::update($fields, ['addr' => $old_handle]); - Logger::log('Contacts are updated.'); + Logger::notice('Contacts are updated.'); return true; } @@@ -2129,9 -2109,9 +2109,9 @@@ $fields['bd'] = $birthday; } - DBA::update('contact', $fields, ['id' => $contact['id']]); + Contact::update($fields, ['id' => $contact['id']]); - Logger::log("Profile of contact ".$contact["id"]." stored for user ".$importer["uid"], Logger::DEBUG); + Logger::info("Profile of contact ".$contact["id"]." stored for user ".$importer["uid"]); return true; }