煎蛋无聊图链接修复 (#1720)

sub_model 为 top-ooxx 时也有链接,所以去掉了 if

close #1716
This commit is contained in:
imlonghao 2019-03-11 10:56:28 +08:00 committed by DIYgod
parent 718686fabc
commit 54752afe9b
1 changed files with 2 additions and 9 deletions

View File

@ -28,17 +28,10 @@ module.exports = async (ctx) => {
}
// Get current comment's link.
let link = $(item)
const link = `https://jandan.net${$(item)
.find('.righttext')
.find('a')
.attr('href');
if (link !== undefined) {
link = `http:${link}`;
} else {
// sub_model 为 top-ooxx 时无链接
link = '';
}
.attr('href')}`;
const imgList = [];
$(item)