From b1c2b65337173ed2888744d5a5d8d47b33d6800e Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 30 Apr 2024 01:03:39 -0400 Subject: [PATCH] Bugfixes --- i18n/resources.json | 2 +- src/embed/status.ts | 2 +- src/experiments.ts | 2 +- src/render/instantview.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/i18n/resources.json b/i18n/resources.json index e896cbe..23660f4 100644 --- a/i18n/resources.json +++ b/i18n/resources.json @@ -21,7 +21,7 @@ "ivAboutAuthor": "About author", "ivProfileFollowing": "{numFollowing, plural, one {Following} other {Following}}", "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", "ivFallbackText": "If you can see this, your browser is doing something weird with your user agent.", diff --git a/src/embed/status.ts b/src/embed/status.ts index cfe2e8a..3a6b921 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -217,7 +217,7 @@ export const handleStatus = async ( } ivbody = instructions.text || ''; } catch (e) { - console.log('Error rendering Instant View', e); + console.log('Error rendering Instant View', e, (e as Error)?.stack); useIV = false; } } diff --git a/src/experiments.ts b/src/experiments.ts index 12a442c..50d6285 100644 --- a/src/experiments.ts +++ b/src/experiments.ts @@ -42,7 +42,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = { [Experiment.IV_FORCE_THREAD_UNROLL]: { name: 'IV force thread unroll', description: 'Force thread unroll for Telegram Instant View', - percentage: 0.25 + percentage: 1 } }; diff --git a/src/render/instantview.ts b/src/render/instantview.ts index 2acb387..534ee09 100644 --- a/src/render/instantview.ts +++ b/src/render/instantview.ts @@ -276,7 +276,7 @@ const generateStatus = ( let text = paragraphify(sanitizeText(status.text), isQuote); text = htmlifyLinks(text); text = htmlifyHashtags(text); - text = populateUserLinks(status, text); + text = populateUserLinks(text); const translatedText = getTranslatedText(status as APITwitterStatus, isQuote);