aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-18 19:00:24 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-18 19:00:24 +0100
commit3393d80ac1af69eaa735a28284e23153735dde55 (patch)
tree03ce20da954dbe10bb7136c698f5eefa09923d9f /include/api.php
parent77e77027b40c5fc07b249d2b294148312852c673 (diff)
downloadvolse-hubzilla-3393d80ac1af69eaa735a28284e23153735dde55.tar.gz
volse-hubzilla-3393d80ac1af69eaa735a28284e23153735dde55.tar.bz2
volse-hubzilla-3393d80ac1af69eaa735a28284e23153735dde55.zip
API: added max_id
Diffstat (limited to 'include/api.php')
-rwxr-xr-xinclude/api.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php
index 5c655990d..aacd47177 100755
--- a/include/api.php
+++ b/include/api.php
@@ -702,12 +702,16 @@
$page = (x($_REQUEST,'page')?$_REQUEST['page']-1:0);
if ($page<0) $page=0;
$since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
+ $max_id = (x($_REQUEST,'max_id')?$_REQUEST['max_id']:0);
//$since_id = 0;//$since_id = (x($_REQUEST,'since_id')?$_REQUEST['since_id']:0);
$start = $page*$count;
//$include_entities = (x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:false);
+ if ($max_id > 0)
+ $sql_extra = 'AND `item`.`id` <= '.intval($max_id);
+
$r = q("SELECT `item`.*, `item`.`id` AS `item_id`,
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
`contact`.`network`, `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`,
@@ -742,8 +746,6 @@
/**
*
- * http://developer.twitter.com/doc/get/statuses/show
- *
*/
function api_statuses_show(&$a, $type){
if (local_user()===false) return false;
@@ -782,6 +784,8 @@
}
api_register_func('api/statuses/show','api_statuses_show', true);
+ //api_register_func('api/statuses/mentions','api_statuses_mentions', true);
+
function api_statuses_user_timeline(&$a, $type){
if (local_user()===false) return false;