From eb10923f7786d1d2dde9da607a01434db4c98f6d Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Tue, 8 Aug 2023 20:46:16 -0500 Subject: [PATCH] Improves broken blog support --- package.json | 2 +- src/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ec97598..dbafe20 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "wrangler": "^3.0.0" }, "dependencies": { - "typeble": "^0.2.1" + "typeble": "^0.3.1" }, "homepage": "https://github.com/MarkSuckerberg/typeble", "bugs": { diff --git a/src/index.ts b/src/index.ts index 89a43e5..5dafa85 100644 --- a/src/index.ts +++ b/src/index.ts @@ -147,7 +147,9 @@ async function mainPage( const videosToShow = videoIndex ? videoTags[+videoIndex - 1] : videoTags.join('\n'); const title = `${post.blog.name} ${ - originalPost ? `🔁 ${originalPost.blog?.name || 'deleted blog'}` : `(${post.blog.title})` + originalPost + ? `🔁 ${originalPost.blog?.name || originalPost.broken_blog_name}` + : `(${post.blog.title})` }`; const audioBlocks = blocks.filter(element => element.type == 'audio') as TumblrNeueAudioBlock[];