From 03fabd9cdf0a0ff60b4e9427f434dc1cdd64fcf7 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 8 May 2026 11:28:33 +0800 Subject: [PATCH] fix: separate quoted tweets in twitter feeds --- lib/routes/twitter/utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/routes/twitter/utils.ts b/lib/routes/twitter/utils.ts index 9eee3dfcc9..6231fb9ba8 100644 --- a/lib/routes/twitter/utils.ts +++ b/lib/routes/twitter/utils.ts @@ -25,6 +25,7 @@ const getOriginalImg = (url) => { } }; const replaceBreak = (text) => text.replaceAll(/

|
/g, ' '); +const quoteSeparator = "
"; const formatText = (item) => { let text = item.full_text; @@ -213,12 +214,13 @@ const ProcessFeed = (ctx, { data = [] }, params = {}) => { if (quoteData?.user) { quoteData.full_text = quoteData.full_text || quoteData.text; const author = quoteData.user; + if (!readable) { + quote += quoteSeparator; + } quote += '
'; if (readable) { quote += `
`; quote += `
`; - } else { - quote += '

'; } if (readable) {