From dc55f337634c43030660946880cd497aa76bf207 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:13:04 +0000 Subject: [PATCH 1/4] Update dependency @sentry/integrations to ^7.76.0 --- package-lock.json | 38 +++++++++++++++++++------------------- package.json | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0f495d8..f5190b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@cloudflare/workers-types": "^4.20231025.0", "@microsoft/eslint-formatter-sarif": "^3.0.0", "@sentry/esbuild-plugin": "^2.9.0", - "@sentry/integrations": "^7.75.1", + "@sentry/integrations": "^7.76.0", "@types/jest": "^29.5.6", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", @@ -2120,14 +2120,14 @@ } }, "node_modules/@sentry/integrations": { - "version": "7.75.1", - "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.75.1.tgz", - "integrity": "sha512-qSCyTNX3DiL1aYRmdq10LRhPLfh1KJYKhbmGszC1PII4mt9FbLVmC8fSXiDbhgiuSUKKrDE+J2lC//w688lvHw==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.76.0.tgz", + "integrity": "sha512-4ea0PNZrGN9wKuE/8bBCRrxxw4Cq5T710y8rhdKHAlSUpbLqr/atRF53h8qH3Fi+ec0m38PB+MivKem9zUwlwA==", "dev": true, "dependencies": { - "@sentry/core": "7.75.1", - "@sentry/types": "7.75.1", - "@sentry/utils": "7.75.1", + "@sentry/core": "7.76.0", + "@sentry/types": "7.76.0", + "@sentry/utils": "7.76.0", "localforage": "^1.8.1" }, "engines": { @@ -2135,34 +2135,34 @@ } }, "node_modules/@sentry/integrations/node_modules/@sentry/core": { - "version": "7.75.1", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.75.1.tgz", - "integrity": "sha512-Kw4KyKBxbxbh8OKO0S11Tm0gWP+6AaXXYrsq3hp8H338l/wOmIzyckmCbUrc/XJeoRqaFLJbdcCrcUEDZUvsVQ==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.76.0.tgz", + "integrity": "sha512-M+ptkCTeCNf6fn7p2MmEb1Wd9/JXUWxIT/0QEc+t11DNR4FYy1ZP2O9Zb3Zp2XacO7ORrlL3Yc+VIfl5JTgjfw==", "dev": true, "dependencies": { - "@sentry/types": "7.75.1", - "@sentry/utils": "7.75.1" + "@sentry/types": "7.76.0", + "@sentry/utils": "7.76.0" }, "engines": { "node": ">=8" } }, "node_modules/@sentry/integrations/node_modules/@sentry/types": { - "version": "7.75.1", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.75.1.tgz", - "integrity": "sha512-km+ygqgMDaFfTrbQwdhrptFqx0Oq15jZABqIoIpbaOCkCAMm+tyCqrFS8dTfaq5wpCktqWOy2qU/DOpppO99Cg==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.76.0.tgz", + "integrity": "sha512-vj6z+EAbVrKAXmJPxSv/clpwS9QjPqzkraMFk2hIdE/kii8s8kwnkBwTSpIrNc8GnzV3qYC4r3qD+BXDxAGPaw==", "dev": true, "engines": { "node": ">=8" } }, "node_modules/@sentry/integrations/node_modules/@sentry/utils": { - "version": "7.75.1", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.75.1.tgz", - "integrity": "sha512-QzW2eRjY20epD//9/tQ0FTNwdAL6XZi+LyJNUQIeK3NMnc5NgHrgpxId87gmFq8cNx47utH1Blub8RuMbKqiwQ==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.76.0.tgz", + "integrity": "sha512-40jFD+yfQaKpFYINghdhovzec4IEpB7aAuyH/GtE7E0gLpcqnC72r55krEIVILfqIR2Mlr5OKUzyeoCyWAU/yw==", "dev": true, "dependencies": { - "@sentry/types": "7.75.1" + "@sentry/types": "7.76.0" }, "engines": { "node": ">=8" diff --git a/package.json b/package.json index 15b694c..d089fc4 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@cloudflare/workers-types": "^4.20231025.0", "@microsoft/eslint-formatter-sarif": "^3.0.0", "@sentry/esbuild-plugin": "^2.9.0", - "@sentry/integrations": "^7.75.1", + "@sentry/integrations": "^7.76.0", "@types/jest": "^29.5.6", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", From 972b9abbc8523b15675cea871ccbe10e5e31ec1a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 07:02:41 +0000 Subject: [PATCH 2/4] Update dependency toucan-js to ^3.3.1 --- package-lock.json | 63 +++++++++++++++++------------------------------ package.json | 2 +- 2 files changed, 23 insertions(+), 42 deletions(-) diff --git a/package-lock.json b/package-lock.json index f5190b9..6420adb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "itty-router": "^4.0.23", - "toucan-js": "^3.3.0" + "toucan-js": "^3.3.1" }, "devDependencies": { "@cloudflare/workers-types": "^4.20231025.0", @@ -2123,7 +2123,6 @@ "version": "7.76.0", "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.76.0.tgz", "integrity": "sha512-4ea0PNZrGN9wKuE/8bBCRrxxw4Cq5T710y8rhdKHAlSUpbLqr/atRF53h8qH3Fi+ec0m38PB+MivKem9zUwlwA==", - "dev": true, "dependencies": { "@sentry/core": "7.76.0", "@sentry/types": "7.76.0", @@ -2138,7 +2137,6 @@ "version": "7.76.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.76.0.tgz", "integrity": "sha512-M+ptkCTeCNf6fn7p2MmEb1Wd9/JXUWxIT/0QEc+t11DNR4FYy1ZP2O9Zb3Zp2XacO7ORrlL3Yc+VIfl5JTgjfw==", - "dev": true, "dependencies": { "@sentry/types": "7.76.0", "@sentry/utils": "7.76.0" @@ -2151,7 +2149,6 @@ "version": "7.76.0", "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.76.0.tgz", "integrity": "sha512-vj6z+EAbVrKAXmJPxSv/clpwS9QjPqzkraMFk2hIdE/kii8s8kwnkBwTSpIrNc8GnzV3qYC4r3qD+BXDxAGPaw==", - "dev": true, "engines": { "node": ">=8" } @@ -2160,7 +2157,6 @@ "version": "7.76.0", "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.76.0.tgz", "integrity": "sha512-40jFD+yfQaKpFYINghdhovzec4IEpB7aAuyH/GtE7E0gLpcqnC72r55krEIVILfqIR2Mlr5OKUzyeoCyWAU/yw==", - "dev": true, "dependencies": { "@sentry/types": "7.76.0" }, @@ -6892,58 +6888,42 @@ } }, "node_modules/toucan-js": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/toucan-js/-/toucan-js-3.3.0.tgz", - "integrity": "sha512-G3RZpX0SiLXq62UkQQyKuZKkB6yKrnp73Y97lh+cBt/fQLoj9YXJJ5IZ8YZ1Dq5nxGpSale+xpuGfUd4QLKcXA==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/toucan-js/-/toucan-js-3.3.1.tgz", + "integrity": "sha512-9BpkHb/Pzsrtl1ItNq9OEQPnuUHwzce0nV2uG+DYFiQ4fPyiA6mKTBcDwQzcvNkfSER038U+8TzvdkCev+Maww==", "dependencies": { - "@sentry/core": "7.70.0", - "@sentry/integrations": "7.70.0", - "@sentry/types": "7.70.0", - "@sentry/utils": "7.70.0" + "@sentry/core": "7.76.0", + "@sentry/integrations": "7.76.0", + "@sentry/types": "7.76.0", + "@sentry/utils": "7.76.0" } }, "node_modules/toucan-js/node_modules/@sentry/core": { - "version": "7.70.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.70.0.tgz", - "integrity": "sha512-voUsGVM+jwRp99AQYFnRvr7sVd2tUhIMj1L6F42LtD3vp7t5ZnKp3NpXagtFW2vWzXESfyJUBhM0qI/bFvn7ZA==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.76.0.tgz", + "integrity": "sha512-M+ptkCTeCNf6fn7p2MmEb1Wd9/JXUWxIT/0QEc+t11DNR4FYy1ZP2O9Zb3Zp2XacO7ORrlL3Yc+VIfl5JTgjfw==", "dependencies": { - "@sentry/types": "7.70.0", - "@sentry/utils": "7.70.0", - "tslib": "^2.4.1 || ^1.9.3" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/toucan-js/node_modules/@sentry/integrations": { - "version": "7.70.0", - "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.70.0.tgz", - "integrity": "sha512-ffIEuiElROzl4IpYX0O7vtPaadXVycPtyjq86YTHjd2TUFcYuQTPBm5UjEVE0/sSNNCdfWYxNThU/fVyq93l1g==", - "dependencies": { - "@sentry/types": "7.70.0", - "@sentry/utils": "7.70.0", - "localforage": "^1.8.1", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry/types": "7.76.0", + "@sentry/utils": "7.76.0" }, "engines": { "node": ">=8" } }, "node_modules/toucan-js/node_modules/@sentry/types": { - "version": "7.70.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.70.0.tgz", - "integrity": "sha512-rY4DqpiDBtXSk4MDNBH3dwWqfPbNBI/9GA7Y5WJSIcObBtfBKp0fzYliHJZD0pgM7d4DPFrDn42K9Iiumgymkw==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.76.0.tgz", + "integrity": "sha512-vj6z+EAbVrKAXmJPxSv/clpwS9QjPqzkraMFk2hIdE/kii8s8kwnkBwTSpIrNc8GnzV3qYC4r3qD+BXDxAGPaw==", "engines": { "node": ">=8" } }, "node_modules/toucan-js/node_modules/@sentry/utils": { - "version": "7.70.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.70.0.tgz", - "integrity": "sha512-0cChMH0lsGp+5I3D4wOHWwjFN19HVrGUs7iWTLTO5St3EaVbdeLbI1vFXHxMxvopbwgpeZafbreHw/loIdZKpw==", + "version": "7.76.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.76.0.tgz", + "integrity": "sha512-40jFD+yfQaKpFYINghdhovzec4IEpB7aAuyH/GtE7E0gLpcqnC72r55krEIVILfqIR2Mlr5OKUzyeoCyWAU/yw==", "dependencies": { - "@sentry/types": "7.70.0", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry/types": "7.76.0" }, "engines": { "node": ">=8" @@ -7042,7 +7022,8 @@ "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true }, "node_modules/type-check": { "version": "0.4.0", diff --git a/package.json b/package.json index d089fc4..3f9bb06 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,6 @@ }, "dependencies": { "itty-router": "^4.0.23", - "toucan-js": "^3.3.0" + "toucan-js": "^3.3.1" } } From 8184ea1c7ec036f8841a5c66a12a065a8970aa3c Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 29 Oct 2023 19:04:04 -0400 Subject: [PATCH 3/4] Decrease this experiment again --- src/experiments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experiments.ts b/src/experiments.ts index 4f36a57..b5c084c 100644 --- a/src/experiments.ts +++ b/src/experiments.ts @@ -13,7 +13,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = { [Experiment.ELONGATOR_BY_DEFAULT]: { name: 'Elongator by default', description: 'Enable Elongator by default (guest token lockout bypass)', - percentage: 0.75 + percentage: 0.6 }, [Experiment.ELONGATOR_PROFILE_API]: { name: 'Elongator profile API', From 26a782f64440880358d7287f3f427e9417a4ea8b Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 29 Oct 2023 19:15:33 -0400 Subject: [PATCH 4/4] Telegram doesn't let you open image embeds inline anymore --- src/embed/status.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/embed/status.ts b/src/embed/status.ts index 8c4f413..d38198f 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -63,7 +63,8 @@ export const handleStatus = async ( isTelegram /*&& !tweet.possibly_sensitive*/ && !flags?.direct && !flags?.api && - (tweet.media?.mosaic || + (tweet.media?.photos?.[0] || // Force instant view for photos for now https://bugs.telegram.org/c/33679 + tweet.media?.mosaic || tweet.is_note_tweet || tweet.quote || tweet.translation ||