Fixed trending
This commit is contained in:
parent
90cf0bfb56
commit
1d37d8c417
|
@ -8,7 +8,7 @@ use App\Helpers\RSS;
|
|||
|
||||
class TrendingController {
|
||||
static public function get() {
|
||||
$cursor = Misc::getCursor();
|
||||
$cursor = Misc::getTtwid();
|
||||
$page = $_GET['page'] ?? 0;
|
||||
$api = Misc::api();
|
||||
$feed = $api->getTrending($cursor, $page);
|
||||
|
|
|
@ -9,6 +9,10 @@ class Misc {
|
|||
return isset($_GET['cursor']) && is_numeric($_GET['cursor']) ? (int) $_GET['cursor'] : 0;
|
||||
}
|
||||
|
||||
static public function getTtwid(): string {
|
||||
return $_GET['cursor'] ?? '';
|
||||
}
|
||||
|
||||
static public function url(string $endpoint = '') {
|
||||
return self::env('APP_URL', '') . $endpoint;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue