fix(route): tieba forum split (#10644)

This commit is contained in:
Tony
2022-08-29 20:44:04 +08:00
committed by GitHub
parent 19dc2857c6
commit a8efd75456
+1 -2
View File
@@ -39,13 +39,12 @@ module.exports = async (ctx) => {
.toArray()
.map((element) => {
const item = $(element);
return `<img src="${item.attr('bpic').split('?tbpicau')[0]}">`;
return `<img src="${item.attr('bpic')?.split('?tbpicau')[0]}">`;
})
.join('');
return {
title,
// description: `<p>${details}</p><p>${medias}</p><p>作者:${author_name}</p>`,
description: art(path.join(__dirname, '../templates/forum.art'), {
details,
medias,