fix(route): change github/comments title format to '[author] commented' (#9006)

This commit is contained in:
Fatpandac
2022-02-06 19:18:26 +08:00
committed by GitHub
parent 76ee6de426
commit 3f04a89e48

View File

@@ -35,7 +35,7 @@ module.exports = async (ctx) => {
.map((_, item) => {
item = $(item);
return {
title: item.find('div.edit-comment-hide').text().trim(),
title: `${item.find('strong.css-truncate').text().trim()} commented`,
description: art(path.join(__dirname, 'templates/comments-description.art'), {
desc: item.find('div.edit-comment-hide').html(),
}),