From: Michael Vogel Date: Sun, 26 Apr 2015 11:26:48 +0000 (+0200) Subject: API: The "conversation" function can now be called with every message id of a post... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58aeb1879b3fa0b3b1d0757d7c66c2a193dc70f7;p=friendica.git API: The "conversation" function can now be called with every message id of a post in that conversation. Not only the parent. --- diff --git a/include/api.php b/include/api.php index dd24a92c9b..06dbca7f14 100644 --- a/include/api.php +++ b/include/api.php @@ -1369,6 +1369,10 @@ logger('API: api_conversation_show: '.$id); + $r = q("SELECT `parent` FROM `item` WHERE `id` = %d", intval($id)); + if ($r) + $id = $r[0]["parent"]; + $sql_extra = ''; if ($max_id > 0)