Skip to content

Commit

Permalink
fix(taoguba): response url is null (#16632)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirius60111 authored Sep 5, 2024
1 parent ab37b88 commit a42d3ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/routes/taoguba/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function handler(ctx) {
method: 'get',
url: item.link,
});
if (detailResponse.url.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
if (detailResponse.url?.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
item.description = '登录后查看完整文章';
return item;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/taoguba/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function handler(ctx) {
method: 'get',
url: item.link,
});
if (detailResponse.url.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
if (detailResponse.url?.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
item.description = '登录后查看完整文章';
return item;
}
Expand Down

0 comments on commit a42d3ac

Please sign in to comment.