summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.php b/init.php
index 79b22da..c3960a0 100644
--- a/init.php
+++ b/init.php
@@ -154,8 +154,12 @@ class Af_Lemmy extends Plugin {
/* normalize video URL for af_youtube_... plugins */
$video_url = "https://www.youtube.com/v/$vid_id";
+ $enc = new FeedEnclosure();
+ $enc->link = $video_url;
+ $enc->type = "text/html";
+
/* push generated video URL to enclosures so that youtube embed plugins would deal with it later (if enabled) */
- $this->generated_enclosures[] = [$video_url, "text/html", null, null, '', ''];
+ $this->generated_enclosures[] = $enc;
$found = 1;
}