From 81ef9775b49290682475879c6faa626743617f88 Mon Sep 17 00:00:00 2001 From: Unknown <20671600+wakou@users.noreply.github.com> Date: Mon, 7 Jul 2025 22:47:13 +0800 Subject: [PATCH] fix(route/twitter): fix error username in desc (#19553) --- lib/routes/twitter/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/twitter/utils.ts b/lib/routes/twitter/utils.ts index 1f4c37385..291447f3f 100644 --- a/lib/routes/twitter/utils.ts +++ b/lib/routes/twitter/utils.ts @@ -280,7 +280,7 @@ const ProcessFeed = (ctx, { data = [] }, params = {}) => { // Make title let title = ''; if (showAuthorInTitle) { - title += userName + ': '; + title += originalItem.user?.name + ': '; } const isRetweet = originalItem !== item; const isQuote = item.is_quote_status; @@ -304,7 +304,7 @@ const ProcessFeed = (ctx, { data = [] }, params = {}) => { } if (showAuthorAsTitleOnly) { - title = userName; + title = originalItem.user?.name; } // Make description @@ -316,12 +316,12 @@ const ProcessFeed = (ctx, { data = [] }, params = {}) => { if (showAuthorInDesc) { if (readable) { description += ''; - description += ``; + description += ``; } if (authorNameBold) { description += ``; } - description += item.user?.name; + description += originalItem.user?.name; if (authorNameBold) { description += ``; }