From 58aeb1879b3fa0b3b1d0757d7c66c2a193dc70f7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 26 Apr 2015 13:26:48 +0200 Subject: [PATCH] API: The "conversation" function can now be called with every message id of a post in that conversation. Not only the parent. --- include/api.php | 4 ++++ 1 file changed, 4 insertions(+) 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)