diff --git a/app/Controllers/VideoController.php b/app/Controllers/VideoController.php index ae1a6a6..a68a1ce 100644 --- a/app/Controllers/VideoController.php +++ b/app/Controllers/VideoController.php @@ -11,7 +11,7 @@ class VideoController { $item = $api->getVideoByID($video_id); if ($item->meta->success) { $latte = Misc::latte(); - $latte->render(Misc::getView('video'), new ItemTemplate($item->info->detail->user->nickname, $item)); + $latte->render(Misc::getView('video'), new ItemTemplate($item->info->detail->nickname, $item)); } else { ErrorHandler::show($item->meta); } diff --git a/app/Helpers/RSS.php b/app/Helpers/RSS.php index ee6495c..02e4ef5 100644 --- a/app/Helpers/RSS.php +++ b/app/Helpers/RSS.php @@ -2,7 +2,7 @@ namespace App\Helpers; use \FeedWriter\RSS2; -use TikScraper\Download; +use \TikScraper\Download; class RSS { static public function build(string $endpoint, string $title, string $description, array $items): string {