fixed direct message reply in api call.
This commit is contained in:
parent
af1d4bb632
commit
8c251aebc7
|
@ -1526,10 +1526,10 @@
|
||||||
$replyto = '';
|
$replyto = '';
|
||||||
$sub = '';
|
$sub = '';
|
||||||
if (x($_REQUEST,'replyto')) {
|
if (x($_REQUEST,'replyto')) {
|
||||||
$r = q('SELECT `uri`, `title` FROM `mail` WHERE `uid`=%d AND `id`=%d',
|
$r = q('SELECT `parent-uri`, `title` FROM `mail` WHERE `uid`=%d AND `id`=%d',
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
intval($_REQUEST['replyto']));
|
intval($_REQUEST['replyto']));
|
||||||
$replyto = $r[0]['uri'];
|
$replyto = $r[0]['parent-uri'];
|
||||||
$sub = $r[0]['title'];
|
$sub = $r[0]['title'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue