mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 02:20:54 +01:00
Enable IV even for possible sensitive
This commit is contained in:
parent
a69b1e9407
commit
ccb34a7691
2 changed files with 4 additions and 2 deletions
|
@ -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 = '';
|
||||
|
||||
|
|
|
@ -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-->
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue