From ec493b28920afd0205bf4d6b76f67f3bdc784afa Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 22 Aug 2023 00:45:58 -0400 Subject: [PATCH] Fix broken change --- src/fetch.ts | 3 +-- src/server.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fetch.ts b/src/fetch.ts index 02aa9be..1804472 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -256,8 +256,7 @@ export const fetchConversation = async ( }) )}&fieldToggles=${encodeURIComponent( JSON.stringify({ - // TODO Figure out what this property does - withArticleRichContentState: false + withArticleRichContentState: true }) )}`, event, diff --git a/src/server.ts b/src/server.ts index 226f9b2..3902200 100644 --- a/src/server.ts +++ b/src/server.ts @@ -25,7 +25,7 @@ const statusRequest = async ( /* Let's return our HTML version for wayback machine (we can add other archivers too in future) */ if ( ['archive.org', 'Wayback Machine'].some(service => - request.headers.get('Via').includes(service) + request.headers.get('Via')?.includes?.(service) ) ) { console.log('Request from archive.org');