Fixed Trending and normalized Discover

This commit is contained in:
Pablo Ferreiro 2023-01-26 19:21:14 +01:00
parent 7d2f6e8fd6
commit 78fe44070c
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
7 changed files with 33 additions and 20 deletions

View file

@ -1,16 +1,16 @@
<?php
namespace App\Models;
use TikScraper\Models\Feed;
/**
* Base for templates with a feed
*/
class FeedTemplate extends BaseTemplate {
public object $data;
public Feed $feed;
function __construct(string $title, object $feed) {
function __construct(string $title, Feed $feed) {
parent::__construct($title);
$this->data = (object) [
'feed' => $feed
];
$this->feed = $feed;
}
}