Revert "Added better og support"

This reverts commit fa3f1e0a7c.
This commit is contained in:
Pablo Ferreiro
2022-11-26 23:36:20 +01:00
parent fa3f1e0a7c
commit ee6e8b0593
15 changed files with 47 additions and 84 deletions
+2 -3
View File
@@ -11,9 +11,8 @@ class EmbedController {
$video = $api->video($id);
$video->feed();
if ($video->ok()) {
$item = $video->getFeed()->items[0];
$info = $video->getInfo();
Wrappers::latte('video', new VideoTemplate($item, $info, true));
$data = $video->getFull();
Wrappers::latte('video', new VideoTemplate($data->feed->items[0], $data->info->detail, true));
} else {
ErrorHandler::showMeta($video->error());
}