mirror of
https://github.com/friendica/friendica
synced 2025-04-22 16:30:11 +00:00
Replace old database queries with the new ones
This commit is contained in:
parent
8f9757aba5
commit
4ad655ab80
12 changed files with 42 additions and 181 deletions
|
@ -263,13 +263,9 @@ function dfrn_request_post(App $a)
|
|||
if (DBM::is_result($r)) {
|
||||
foreach ($r as $rr) {
|
||||
if (!$rr['rel']) {
|
||||
q("DELETE FROM `contact` WHERE `id` = %d AND NOT `self`",
|
||||
intval($rr['cid'])
|
||||
);
|
||||
dba::delete('contact', ['id' => $rr['cid'], 'self' => false]);
|
||||
}
|
||||
q("DELETE FROM `intro` WHERE `id` = %d",
|
||||
intval($rr['iid'])
|
||||
);
|
||||
dba::delete('intro', ['id' => $rr['iid']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue