diff --git a/lib/routes/twitter/utils.ts b/lib/routes/twitter/utils.ts index 1f4c37385e..291447f3f5 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 += ``; }