fix: 看雪无Topic只获取精华帖报错 (#4474)
This commit is contained in:
@@ -83,7 +83,7 @@ module.exports = async (ctx) => {
|
||||
item = $(item);
|
||||
|
||||
const src = item.attr('src');
|
||||
if (!src.startsWith('https://') && !src.startsWith('http://')) {
|
||||
if (typeof src !== 'undefined' && !src.startsWith('https://') && !src.startsWith('http://')) {
|
||||
item.attr('src', `https://bbs.pediy.com/${src}`);
|
||||
}
|
||||
item.attr('referrerpolicy', 'no-referrer');
|
||||
|
||||
Reference in New Issue
Block a user