rss: fix zhihu zhuanlan image links

This commit is contained in:
DIYgod
2018-05-18 17:07:31 +08:00
parent a565235c5b
commit 7c087297fc
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = async (ctx) => {
description: info.description,
item: list.map((item) => ({
title: item.title,
description: item.content.replace(/<img src="/g, '<img referrerpolicy="no-referrer" src="https://pic4.zhimg.com/'),
description: item.content.replace(/ src="/g, ' referrerpolicy="no-referrer" src="https://pic4.zhimg.com/'),
pubDate: new Date(item.publishedTime).toUTCString(),
link: `https://zhuanlan.zhihu.com${item.url}`,
})),