mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Replace old database queries with the new ones
This commit is contained in:
parent
8bc565be74
commit
d54c79a772
3 changed files with 2 additions and 8 deletions
|
@ -2094,7 +2094,6 @@ 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"])];
|
||||
dba::update('contact', $fields, $condition);
|
||||
|
||||
// @TODO No dba:update here?
|
||||
dba::update('contact', $fields, $condition);
|
||||
|
@ -2103,11 +2102,6 @@ class DFRN
|
|||
|
||||
logger('Contacts are updated.');
|
||||
|
||||
/// @TODO WHERE DOES $x COME FROM ???
|
||||
if ($x === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// update items
|
||||
// This is an extreme performance killer
|
||||
Item::update(['owner-link' => $relocate["url"]], ['owner-link' => $old["url"], 'uid' => $importer["importer_uid"]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue