From a8813a63116804be75f428c5bf6b3bec1b04381d Mon Sep 17 00:00:00 2001 From: Rongrong Date: Thu, 11 Apr 2024 23:45:28 +0800 Subject: [PATCH] fix(routes/wechat/tgchannel): title is not mpName (#15193) This is a regression introduced in 9787a92c. Use `||` instead of `??` to prevent empty string being used as the feed title. Signed-off-by: Rongrong --- lib/routes/wechat/tgchannel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/wechat/tgchannel.ts b/lib/routes/wechat/tgchannel.ts index 3f6b009d9..3c0928271 100644 --- a/lib/routes/wechat/tgchannel.ts +++ b/lib/routes/wechat/tgchannel.ts @@ -170,7 +170,7 @@ async function handler(ctx) { out.reverse(); return { - title: $('.tgme_channel_info_header_title').text(), + title: mpName || $('.tgme_channel_info_header_title').text(), link: `https://t.me/s/${id}`, item: out.filter(Boolean), allowEmpty: !!mpName,