From 3f04a89e4861dc2a4eb6c3fa30460581055562b4 Mon Sep 17 00:00:00 2001 From: Fatpandac <1779196284@qq.com> Date: Sun, 6 Feb 2022 19:18:26 +0800 Subject: [PATCH] fix(route): change github/comments title format to '[author] commented' (#9006) --- lib/v2/github/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/github/comments.js b/lib/v2/github/comments.js index 7c79c59c8..2313481ca 100644 --- a/lib/v2/github/comments.js +++ b/lib/v2/github/comments.js @@ -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(), }),