summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-05-30 11:51:17 +0300
committerAndrew Dolgov <[email protected]>2022-05-30 11:51:17 +0300
commit6894c8bd7b10c25228341d4e1ab20a13376bdb82 (patch)
treebc71429a05fbf63e066fc2aaf7ab1fe0990ab074
parent930ad7292a3d1cdd57edd4fc6ea88bfe67d62579 (diff)
update external links
-rw-r--r--init.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.php b/init.php
index 4556ed2..bbea607 100644
--- a/init.php
+++ b/init.php
@@ -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");