mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Some more "q" calls replaced
This commit is contained in:
parent
8dc4499bcf
commit
2924969b30
3 changed files with 12 additions and 32 deletions
|
@ -158,12 +158,9 @@ function message_content(App $a)
|
|||
|
||||
DI::baseUrl()->redirect('message/' . $conversation['id'] );
|
||||
} else {
|
||||
$r = q("SELECT `parent-uri`,`convid` FROM `mail` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval(DI::args()->getArgv()[2]),
|
||||
intval(local_user())
|
||||
);
|
||||
if (DBA::isResult($r)) {
|
||||
$parent = $r[0]['parent-uri'];
|
||||
$parentmail = DBA::selectFirst('mail', ['parent-uri'], ['id' => DI::args()->getArgv()[2], 'uid' => local_user()]);
|
||||
if (DBA::isResult($parentmail)) {
|
||||
$parent = $parentmail['parent-uri'];
|
||||
|
||||
if (!DBA::delete('mail', ['parent-uri' => $parent, 'uid' => local_user()])) {
|
||||
notice(DI::l10n()->t('Conversation was not removed.'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue