From 607e22ce94a10260c040de4f657dd0b625e0886c Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 26 Jun 2023 21:46:52 +0800 Subject: [PATCH] fix: tweet with no text failed to save --- packages/content-handler/src/websites/nitter-handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/content-handler/src/websites/nitter-handler.ts b/packages/content-handler/src/websites/nitter-handler.ts index 257512cfc..d5a1a4e83 100644 --- a/packages/content-handler/src/websites/nitter-handler.ts +++ b/packages/content-handler/src/websites/nitter-handler.ts @@ -350,7 +350,7 @@ export class NitterHandler extends ContentHandler { '_normal', '_400x400' )}` - const description = _.escape(tweet.text) + const description = _.escape(tweet.text) || escapedTitle const imageDomain = domain.toLowerCase() === 'twitter.com' ? 'https://pbs.twimg.com' @@ -402,6 +402,7 @@ export class NitterHandler extends ContentHandler { +