Replace old database queries with the new ones

This commit is contained in:
Michael 2018-05-02 19:26:15 +00:00 committed by Roland Häder
parent cbe12eba76
commit 8b775d48f9
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
3 changed files with 4 additions and 2 deletions

View file

@ -2094,6 +2094,8 @@ class DFRN
'confirm' => $relocate["confirm"], 'notify' => $relocate["notify"],
'poll' => $relocate["poll"], 'site-pubkey' => $relocate["sitepubkey"]];
$condition = ["(`id` = ?) OR (`nurl` = ?)", $importer["id"], normalise_link($old["url"])];
// @TODO No dba:update here?
dba::update('contact', $fields, $condition);
Contact::updateAvatar($relocate["avatar"], $importer["importer_uid"], $importer["id"], true);