Skip to content

Commit

Permalink
Improves broken blog support
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Aug 9, 2023
1 parent ae17dea commit eb10923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"wrangler": "^3.0.0"
},
"dependencies": {
"typeble": "^0.2.1"
"typeble": "^0.3.1"
},
"homepage": "https://github.com/MarkSuckerberg/typeble",
"bugs": {
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit eb10923

Please sign in to comment.