From 8eae9e9c326de0d5549e41c08d5f29ccfa709673 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 22 Jan 2024 02:25:17 -0500 Subject: [PATCH] Remove unnecessary logging --- src/embed/status.ts | 2 -- src/providers/twitter/conversation.ts | 4 +--- src/render/instantview.ts | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/embed/status.ts b/src/embed/status.ts index 113252d..d56507a 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -47,8 +47,6 @@ export const handleStatus = async ( flags?.api ?? false ); - console.log('twitterThread', thread); - const status = thread?.status as APITwitterStatus; const api = { diff --git a/src/providers/twitter/conversation.ts b/src/providers/twitter/conversation.ts index 917e7c9..9e5a336 100644 --- a/src/providers/twitter/conversation.ts +++ b/src/providers/twitter/conversation.ts @@ -67,7 +67,7 @@ export const fetchTweetDetail = async ( if (tweet && isGraphQLTwitterStatus(tweet)) { return true; } - console.log('invalid graphql tweet', conversation); + console.log('invalid graphql tweet', JSON.stringify(conversation)); return Array.isArray(conversation?.errors); }, @@ -496,9 +496,7 @@ export const constructTwitterThread = async ( }; await Promise.all(threadStatuses.map(async status => { - console.log('Processing status for', status) const builtStatus = await buildAPITwitterStatus(c, status, undefined, true, false) as APITwitterStatus; - console.log('builtStatus', builtStatus); socialThread.thread?.push(builtStatus); })); diff --git a/src/render/instantview.ts b/src/render/instantview.ts index 96b5617..56d21e0 100644 --- a/src/render/instantview.ts +++ b/src/render/instantview.ts @@ -211,8 +211,6 @@ export const renderInstantView = (properties: RenderProperties): ResponseInstruc : `` ]; - console.log('thread', thread?.thread) - instructions.text = `