RIP Legacy Mode

This commit is contained in:
Pablo Ferreiro
2022-06-04 21:04:43 +02:00
parent bdba336d3c
commit e12d26562d
8 changed files with 14 additions and 33 deletions
+1 -6
View File
@@ -10,13 +10,8 @@ use App\Models\RSSTemplate;
class TrendingController {
static public function get() {
$api = Wrappers::api();
$cursor = Misc::getTtwid();
// Ttwid if standard, cursor if legacy
if ($api->isLegacy()) {
$cursor = Misc::getCursor();
} else {
$cursor = Misc::getTtwid();
}
$trending = $api->trending();
$trending->feed($cursor);