From 8c251aebc77a6daacfe20598fc861df4c243a726 Mon Sep 17 00:00:00 2001 From: Sebastian Egbers Date: Mon, 25 Jun 2012 16:25:34 +0200 Subject: [PATCH] fixed direct message reply in api call. --- include/api.php | 4 ++-- 1 file 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 {