From 1e8552da98c9d66c78c360e2aa9c901a41571cb1 Mon Sep 17 00:00:00 2001 From: Holger Date: Thu, 15 Sep 2022 19:49:48 +0800 Subject: [PATCH] fix: error when no mediaType supplied --- lib/convertv2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/convertv2.js b/lib/convertv2.js index e97a1a6..ff4ad70 100644 --- a/lib/convertv2.js +++ b/lib/convertv2.js @@ -174,7 +174,7 @@ async function itemsForFeed(opts,user,feed) { }).map((a)=>{ return { name:a.name, - type:a.mediaType, + type:a.mediaType || '', url:a.url } });