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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user