From 5c55fe47b6a3cae071268a02d7c02094b00f166c Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Fri, 18 Aug 2023 04:29:20 -0400 Subject: [PATCH] Only show View original for non-quotes --- src/render/instantview.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/render/instantview.ts b/src/render/instantview.ts index 03a51f3..c184cb5 100644 --- a/src/render/instantview.ts +++ b/src/render/instantview.ts @@ -83,11 +83,12 @@ const generateTweet = (tweet: APITweet, isQuote = false): string => { ${isQuote ? '' : ''} ${generateTweetMedia(tweet)} ${(!isQuote && tweet.quote) ? generateTweet(tweet.quote, true) : ''} - View original` +
${(!isQuote ? `View original` : '')} + ` } export const renderInstantView = (properties: RenderProperties): ResponseInstructions => { - console.log('Generating Instant View (placeholder)...'); + console.log('Generating Instant View...'); const { tweet } = properties; const instructions: ResponseInstructions = { addHeaders: [] }; /* Use ISO date for Medium template */