style: auto format
This commit is contained in:
+1
-3
@@ -35,11 +35,9 @@ module.exports = async (ctx) => {
|
||||
const items = await Promise.all(
|
||||
list.map((item) =>
|
||||
ctx.cache.tryGet(item.link, async () => {
|
||||
|
||||
if (new URL(item.link).hostname === 'mp.weixin.qq.com') {
|
||||
item.description = (await fetchArticle(ctx, item.link)).description;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
const detailResponse = await got({
|
||||
method: 'get',
|
||||
url: item.link,
|
||||
|
||||
Reference in New Issue
Block a user