]> git.mxchange.org Git - friendica.git/commitdiff
API: The "conversation" function can now be called with every message id of a post...
authorMichael Vogel <icarus@dabo.de>
Sun, 26 Apr 2015 11:26:48 +0000 (13:26 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 26 Apr 2015 11:26:48 +0000 (13:26 +0200)
include/api.php

index dd24a92c9b105bf22e2bbc25532fc7f258e24d78..06dbca7f143ad9911702c02292ad1fbb5d03b346 100644 (file)
 
                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)