diff options
author | Sebastian Egbers <sebastian@egbers.info> | 2012-06-25 16:25:34 +0200 |
---|---|---|
committer | Sebastian Egbers <sebastian@egbers.info> | 2012-06-25 16:25:34 +0200 |
commit | 8c251aebc77a6daacfe20598fc861df4c243a726 (patch) | |
tree | e89552d1256cadede808abcb174a135d6537576a /include/api.php | |
parent | af1d4bb632aa1f6c9fb9f756f1d8606f9fe947e1 (diff) | |
download | volse-hubzilla-8c251aebc77a6daacfe20598fc861df4c243a726.tar.gz volse-hubzilla-8c251aebc77a6daacfe20598fc861df4c243a726.tar.bz2 volse-hubzilla-8c251aebc77a6daacfe20598fc861df4c243a726.zip |
fixed direct message reply in api call.
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php index 2da183f01..191ed6fcd 100644 --- a/include/api.php +++ b/include/api.php @@ -1526,10 +1526,10 @@ $replyto = ''; $sub = ''; 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($_REQUEST['replyto'])); - $replyto = $r[0]['uri']; + $replyto = $r[0]['parent-uri']; $sub = $r[0]['title']; } else { |