mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Old database functions had been replaced in the workers
This commit is contained in:
parent
66bcbe210a
commit
08abf65f7b
6 changed files with 24 additions and 29 deletions
|
@ -208,7 +208,7 @@ class Delivery {
|
|||
$atom = DFRN::mail($item, $owner);
|
||||
} elseif ($fsuggest) {
|
||||
$atom = DFRN::fsuggest($item, $owner);
|
||||
q("DELETE FROM `fsuggest` WHERE `id` = %d LIMIT 1", intval($item['id']));
|
||||
dba::delete('fsuggest', ['id' => $item['id']]);
|
||||
} elseif ($relocate) {
|
||||
$atom = DFRN::relocate($owner, $uid);
|
||||
} elseif ($followup) {
|
||||
|
@ -290,9 +290,7 @@ class Delivery {
|
|||
if ($x && count($x)) {
|
||||
$write_flag = ((($x[0]['rel']) && ($x[0]['rel'] != CONTACT_IS_SHARING)) ? true : false);
|
||||
if ((($owner['page-flags'] == PAGE_COMMUNITY) || $write_flag) && !$x[0]['writable']) {
|
||||
q("UPDATE `contact` SET `writable` = 1 WHERE `id` = %d",
|
||||
intval($x[0]['id'])
|
||||
);
|
||||
dba::update('contact', ['writable' => true], ['id' => $x[0]['id']]);
|
||||
$x[0]['writable'] = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue