diff --git a/src/embed/status.ts b/src/embed/status.ts index 9e7381e..8a88a2f 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -35,8 +35,10 @@ export const handleStatus = async ( const api = await statusAPI(status, language, event as FetchEvent, flags); const tweet = api?.tweet as APITweet; + const isTelegram = (userAgent || '').indexOf('Telegram') > -1; - const useIV = isTelegram && tweet.is_note_tweet; //!tweet.possibly_sensitive && !flags?.direct && (tweet.media?.photos || tweet.media?.videos); + /* Should sensitive posts be allowed Instant View? */ + const useIV = isTelegram /*&& !tweet.possibly_sensitive*/ && !flags?.direct && !flags?.api && (tweet.media?.mosaic || tweet.is_note_tweet); let ivbody = ''; diff --git a/src/render/instantview.ts b/src/render/instantview.ts index 1e6c2a3..2dd7da1 100644 --- a/src/render/instantview.ts +++ b/src/render/instantview.ts @@ -76,7 +76,7 @@ export const renderInstantView = (properties: RenderProperties): ResponseInstruc

${tweet.author.name} (@${tweet.author.screen_name})

-

Instant View (✨ Beta)

+

Instant View (✨ Beta) - View original