mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-10 21:10:54 +01:00
Bugfixes
This commit is contained in:
parent
ce1dda2b8a
commit
b1c2b65337
4 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@
|
||||||
"ivAboutAuthor": "About author",
|
"ivAboutAuthor": "About author",
|
||||||
"ivProfileFollowing": "{numFollowing, plural, one {Following} other {Following}}",
|
"ivProfileFollowing": "{numFollowing, plural, one {Following} other {Following}}",
|
||||||
"ivProfileFollowers": "{numFollowers, plural, one {Follower} other {Followers}}",
|
"ivProfileFollowers": "{numFollowers, plural, one {Follower} other {Followers}}",
|
||||||
"ivProfileStatuses": "{numPosts, plural, one {Post} other {Posts}}",
|
"ivProfileStatuses": "{numStatuses, plural, one {Post} other {Posts}}",
|
||||||
"ivProfilePictureAlt": "{author}'s profile picture",
|
"ivProfilePictureAlt": "{author}'s profile picture",
|
||||||
|
|
||||||
"ivFallbackText": "If you can see this, your browser is doing something weird with your user agent.",
|
"ivFallbackText": "If you can see this, your browser is doing something weird with your user agent.",
|
||||||
|
|
|
@ -217,7 +217,7 @@ export const handleStatus = async (
|
||||||
}
|
}
|
||||||
ivbody = instructions.text || '';
|
ivbody = instructions.text || '';
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('Error rendering Instant View', e);
|
console.log('Error rendering Instant View', e, (e as Error)?.stack);
|
||||||
useIV = false;
|
useIV = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = {
|
||||||
[Experiment.IV_FORCE_THREAD_UNROLL]: {
|
[Experiment.IV_FORCE_THREAD_UNROLL]: {
|
||||||
name: 'IV force thread unroll',
|
name: 'IV force thread unroll',
|
||||||
description: 'Force thread unroll for Telegram Instant View',
|
description: 'Force thread unroll for Telegram Instant View',
|
||||||
percentage: 0.25
|
percentage: 1
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,7 @@ const generateStatus = (
|
||||||
let text = paragraphify(sanitizeText(status.text), isQuote);
|
let text = paragraphify(sanitizeText(status.text), isQuote);
|
||||||
text = htmlifyLinks(text);
|
text = htmlifyLinks(text);
|
||||||
text = htmlifyHashtags(text);
|
text = htmlifyHashtags(text);
|
||||||
text = populateUserLinks(status, text);
|
text = populateUserLinks(text);
|
||||||
|
|
||||||
const translatedText = getTranslatedText(status as APITwitterStatus, isQuote);
|
const translatedText = getTranslatedText(status as APITwitterStatus, isQuote);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue