Reverted to last usable version

This commit is contained in:
Pablo Ferreiro 2022-02-16 15:20:35 +01:00
parent 279a4f50c6
commit c47d6cd6d4
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
23 changed files with 149 additions and 144 deletions

View file

@ -8,10 +8,9 @@ use App\Helpers\RSS;
class TrendingController {
static public function get() {
$cursor = Misc::getTtwid();
$page = $_GET['page'] ?? 0;
$cursor = Misc::getCursor();
$api = Misc::api();
$feed = $api->getTrending($cursor, $page);
$feed = $api->getTrendingFeed($cursor);
if ($feed->meta->success) {
$latte = Misc::latte();
$latte->render(Misc::getView('trending'), new FeedTemplate('Trending', $feed));
@ -22,7 +21,7 @@ class TrendingController {
static public function rss() {
$api = Misc::api();
$feed = $api->getTrending();
$feed = $api->getTrendingFeed();
if ($feed->meta->success) {
$feed = RSS::build('/trending', 'Trending', 'Tiktok trending', $feed->items);
// Setup headers