Enable IV even for possible sensitive

This commit is contained in:
dangered wolf 2023-08-18 03:16:33 -04:00
parent a69b1e9407
commit ccb34a7691
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 4 additions and 2 deletions

View file

@ -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 = '';

View file

@ -76,7 +76,7 @@ export const renderInstantView = (properties: RenderProperties): ResponseInstruc
</section>
<article>
<h1>${tweet.author.name} (@${tweet.author.screen_name})</h1>
<p>Instant View ( Beta)</p>
<p>Instant View ( Beta) - <a href="${tweet.url}">View original</a></p>
<!--blockquote class="twitter-tweet" data-dnt="true"><p lang="en" dir="ltr"> <a href="${tweet.url}">_</a></blockquote-->