]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #10797 from annando/diaspora-deprecated
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 2 Oct 2021 17:19:40 +0000 (19:19 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Oct 2021 17:19:40 +0000 (19:19 +0200)
Replaced deprecated code from the Diaspora implementation

1  2 
src/Protocol/Diaspora.php

index b08fa23c2b01c8187bb6e1104919e1a986a8b728,087754dfc9e7806f80f87b5b7a3b3e5c64253884..1daea43fd46aa1d67614469bd6d3c7d114903220
@@@ -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;
        }
                        $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;
        }