]> git.mxchange.org Git - friendica.git/commitdiff
fixed direct message reply in api call.
authorSebastian Egbers <sebastian@egbers.info>
Mon, 25 Jun 2012 14:25:34 +0000 (16:25 +0200)
committerSebastian Egbers <sebastian@egbers.info>
Mon, 25 Jun 2012 14:25:34 +0000 (16:25 +0200)
include/api.php

index 2da183f01925eb1651d8fe46c41a7ff28d6d7a1e..191ed6fcd8138485ffbebad075f100416076fca2 100644 (file)
                $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 {