diff options
author | Andrew Dolgov <[email protected]> | 2022-05-30 11:51:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-05-30 11:51:17 +0300 |
commit | 6894c8bd7b10c25228341d4e1ab20a13376bdb82 (patch) | |
tree | bc71429a05fbf63e066fc2aaf7ab1fe0990ab074 | |
parent | 930ad7292a3d1cdd57edd4fc6ea88bfe67d62579 (diff) |
update external links
-rw-r--r-- | init.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -21,6 +21,7 @@ class Af_Youtube_Thumb extends Plugin { function hook_article_image($enclosures, $content, $site_url, $article) { + /** @var array<string,string> $enc */ foreach ($enclosures as $enc) { if ($vid_id = UrlHelper::url_to_youtube_vid($enc["content_url"])) { $thumb_url = htmlspecialchars("https://img.youtube.com/vi/$vid_id/hqdefault.jpg"); |