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 <i@rong.moe>
This commit is contained in:
Rongrong
2024-04-11 23:45:28 +08:00
committed by GitHub
parent 6b87dfc610
commit a8813a6311
+1 -1
View File
@@ -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,