API: The "conversation" function can now be called with every message id of a post in that conversation. Not only the parent.

This commit is contained in:
Michael Vogel 2015-04-26 13:26:48 +02:00
parent 7e514d56fe
commit 58aeb1879b
1 changed files with 4 additions and 0 deletions

View File

@ -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)