antoniyus / dabr

Automatically exported from code.google.com/p/dabr
0 stars 0 forks source link

tweet limt #322

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please make a limitable/limited tweets per page, because some phones showed 
"out of memory" error when accessing with dabr

Original issue reported on code.google.com by rocky.pr...@gmail.com on 12 Dec 2011 at 8:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r460.

Original comment by terence.eden on 14 Dec 2011 at 2:13

GoogleCodeExporter commented 8 years ago
Shouldn't the per page limit apply to favorites page as well?

Original comment by navjotjs...@gmail.com on 1 Jan 2012 at 4:19

GoogleCodeExporter commented 8 years ago
on function twitter_favourites_page

include this 
$perPage = setting_fetch('perPage', 20);

then change
$request = 
API_URL."favorites/{$screen_name}.json?page=".intval($_GET['page']).'&include_en
tities=true';

to

$request = 
API_URL."favorites/{$screen_name}.json?count=".$perPage.'&include_entities=true'
;

Original comment by dhani.da...@gmail.com on 10 Jan 2012 at 4:27

GoogleCodeExporter commented 8 years ago
then change
$request = 
API_URL."favorites/{$screen_name}.json?page=".intval($_GET['page']).'&include_en
tities=true';

to

API_URL."favorites/{$screen_name}.json?page=".intval($_GET['page']).'&include_en
tities=true&count='.$perPage;

Original comment by dhaniwda...@gmail.com on 10 Jan 2012 at 12:52