Properly implemented OG

This commit is contained in:
Pablo Ferreiro 2022-11-26 23:51:45 +01:00
parent ee6e8b0593
commit 215f984fe4
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
16 changed files with 87 additions and 50 deletions

View file

@ -15,8 +15,9 @@ class TagController {
$hashtag = $api->hashtag($name);
$hashtag->feed($cursor);
if ($hashtag->ok()) {
$data = $hashtag->getFull();
Wrappers::latte('tag', new FullTemplate($data->info->detail->title, $data));
$info = $hashtag->getInfo();
$feed = $hashtag->getFeed();
Wrappers::latte('tag', new FullTemplate($info->detail->title, $info, $feed));
} else {
ErrorHandler::showMeta($hashtag->error());
}