Trending fix

This commit is contained in:
Pablo Ferreiro 2022-04-17 23:16:00 +02:00
parent d9165d693f
commit c04122d11f
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
2 changed files with 8 additions and 8 deletions

View file

@ -11,8 +11,8 @@ class TrendingController {
static public function get() {
$api = Wrappers::api();
// Ttwid if normal, cursor if legacy
if ($api::class === 'TikScraper\Api') {
// Ttwid if standard, cursor if legacy
if ($api::MODE === 'STANDARD') {
$cursor = Misc::getTtwid();
} else {
$cursor = Misc::getCursor();