From ae17deabe9670acd5888a9d055740c97f189a349 Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Tue, 8 Aug 2023 13:23:27 -0500 Subject: [PATCH] fix deleted blogs in trail pending typeble update --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ce5bc30..89a43e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -147,7 +147,7 @@ async function mainPage( const videosToShow = videoIndex ? videoTags[+videoIndex - 1] : videoTags.join('\n'); const title = `${post.blog.name} ${ - originalPost ? `🔁 ${originalPost.blog.name}` : `(${post.blog.title})` + originalPost ? `🔁 ${originalPost.blog?.name || 'deleted blog'}` : `(${post.blog.title})` }`; const audioBlocks = blocks.filter(element => element.type == 'audio') as TumblrNeueAudioBlock[];