]> git.mxchange.org Git - friendica.git/commitdiff
API: Changed "parent_id" to "conversation_id" since that reflects better the meaning...
authorMichael Vogel <icarus@dabo.de>
Sun, 16 Jun 2013 11:42:43 +0000 (13:42 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 16 Jun 2013 11:42:43 +0000 (13:42 +0200)
include/api.php

index 5b26328d01dd778a19247d718a838538c02a8e0c..b24cfdc07ca4e3d421d3d4fbbd4968f7a0f11b85 100644 (file)
                $max_id = (x($_REQUEST,'max_id')?$_REQUEST['max_id']:0);
                //$since_id = 0;//$since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
                $exclude_replies = (x($_REQUEST,'exclude_replies')?1:0);
-               $parent_id = (x($_REQUEST,'parent_id')?$_REQUEST['parent_id']:0);
+               $conversation_id = (x($_REQUEST,'conversation_id')?$_REQUEST['conversation_id']:0);
 
                $start = $page*$count;
 
                        $sql_extra .= ' AND `item`.`id` <= '.intval($max_id);
                if ($exclude_replies > 0)
                        $sql_extra .= ' AND `item`.`parent` = `item`.`id`';
-               if ($parent_id > 0)
-                       $sql_extra .= ' AND `item`.`parent` = '.intval($parent_id);
+               if ($conversation_id > 0)
+                       $sql_extra .= ' AND `item`.`parent` = '.intval($conversation_id);
 
                $r = q("SELECT `item`.*, `item`.`id` AS `item_id`,
                        `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
                $max_id = (x($_REQUEST,'max_id')?$_REQUEST['max_id']:0);
                //$since_id = 0;//$since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
                $exclude_replies = (x($_REQUEST,'exclude_replies')?1:0);
-               $parent_id = (x($_REQUEST,'parent_id')?$_REQUEST['parent_id']:0);
+               $conversation_id = (x($_REQUEST,'conversation_id')?$_REQUEST['conversation_id']:0);
 
                $start = $page*$count;
 
                        $sql_extra = 'AND `item`.`id` <= '.intval($max_id);
                if ($exclude_replies > 0)
                        $sql_extra .= ' AND `item`.`parent` = `item`.`id`';
-               if ($parent_id > 0)
-                       $sql_extra .= ' AND `item`.`parent` = '.intval($parent_id);
+               if ($conversation_id > 0)
+                       $sql_extra .= ' AND `item`.`parent` = '.intval($conversation_id);
 
                /*$r = q("SELECT `item`.*, `item`.`id` AS `item_id`,
                        `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
                $since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
                //$since_id = 0;//$since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
                $exclude_replies = (x($_REQUEST,'exclude_replies')?1:0);
-               $parent_id = (x($_REQUEST,'parent_id')?$_REQUEST['parent_id']:0);
+               $conversation_id = (x($_REQUEST,'conversation_id')?$_REQUEST['conversation_id']:0);
 
                $start = $page*$count;
 
 
                if ($exclude_replies > 0)
                        $sql_extra .= ' AND `item`.`parent` = `item`.`id`';
-               if ($parent_id > 0)
-                       $sql_extra .= ' AND `item`.`parent` = '.intval($parent_id);
+               if ($conversation_id > 0)
+                       $sql_extra .= ' AND `item`.`parent` = '.intval($conversation_id);
 
                $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, 
                        `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,