HTML;
}
// Video
if (isset($post->ovid)) {
$mainImage = $post->main;
$content .= <<
Your browser does not support the video element. Kindly update it to latest version.
HTML;
// This is typically a m3u8 which I don't know how to present in a browser
$streamingUrl = $post->vid;
}
$this->processMetadata($post);
return $content;
}
public function getIcon()
{
return 'https://gettr.com/favicon.ico';
}
/**
* @param stdClass $post
*/
private function processMetadata(stdClass $post): void
{
// Unused metadata, maybe used later
$textLanguage = $post->txt_lang ?? 'en';
$replies = $post->cm ?? 0;
$likes = $post->lkbpst ?? 0;
$reposts = $post->shbpst ?? 0;
// I think a visibility of "p" means that it's public
$visibility = $post->vis ?? 'p';
}
}