mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-10 21:10:54 +01:00
Fix IV always being forced
This commit is contained in:
parent
df2dc4e69c
commit
f7eda358e3
2 changed files with 3 additions and 4 deletions
|
@ -119,7 +119,8 @@ export const handleStatus = async (
|
||||||
status.quote ||
|
status.quote ||
|
||||||
status.translation ||
|
status.translation ||
|
||||||
status.community_note ||
|
status.community_note ||
|
||||||
flags?.forceInstantView);
|
flags?.forceInstantView ||
|
||||||
|
(thread?.thread?.length ?? 0) > 1);
|
||||||
|
|
||||||
/* Force enable IV for archivers */
|
/* Force enable IV for archivers */
|
||||||
if (flags?.archive) {
|
if (flags?.archive) {
|
||||||
|
|
|
@ -57,11 +57,9 @@ export const statusRequest = async (c: Context) => {
|
||||||
console.log('Forced instant view request');
|
console.log('Forced instant view request');
|
||||||
flags.forceInstantView = true;
|
flags.forceInstantView = true;
|
||||||
} else if (
|
} else if (
|
||||||
experimentCheck(Experiment.IV_FORCE_THREAD_UNROLL, userAgent.includes('Telegram')) ||
|
experimentCheck(Experiment.IV_FORCE_THREAD_UNROLL, userAgent.includes('Telegram'))
|
||||||
Constants.INSTANT_VIEW_THREADS_DOMAINS.includes(url.hostname)
|
|
||||||
) {
|
) {
|
||||||
console.log('Forced unroll instant view');
|
console.log('Forced unroll instant view');
|
||||||
flags.forceInstantView = true;
|
|
||||||
flags.instantViewUnrollThreads = true;
|
flags.instantViewUnrollThreads = true;
|
||||||
} else if (Constants.GALLERY_DOMAINS.includes(url.hostname)) {
|
} else if (Constants.GALLERY_DOMAINS.includes(url.hostname)) {
|
||||||
console.log('Gallery embed request');
|
console.log('Gallery embed request');
|
||||||
|
|
Loading…
Add table
Reference in a new issue