fix(route/bilibili): preserve original description for dynamic title (#19596)

This commit is contained in:
AiraNadih
2025-07-14 17:01:07 +08:00
committed by GitHub
parent eb120e03f9
commit 60ec800793
+3 -2
View File
@@ -296,7 +296,8 @@ async function handler(ctx) {
link = `https://t.bilibili.com/${item.id_str}`;
}
let description = getDes(data) || '';
const originalDescription = getDes(data) || '';
let description = originalDescription;
const title = getTitle(data);
const category: string[] = [];
// emoji
@@ -388,7 +389,7 @@ async function handler(ctx) {
.join('<br>');
return {
title: title || description,
title: title || originalDescription,
description: descriptions,
pubDate: data.module_author?.pub_ts ? parseDate(data.module_author.pub_ts, 'X') : undefined,
link,