fix(route/cna): Rectify link. (#14524)

This commit is contained in:
Andvari
2024-02-22 20:52:08 +08:00
committed by GitHub
parent 1a4ac34e3c
commit 3f1a53e930
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.text(),
link: item.parents('a').attr('href'),
link: new URL(item.parents('a').attr('href'), 'https://www.cna.com.tw').href,
pubDate: timezone(parseDate(item.next().text()), +8),
};
});