From 62e96e1aab7e2c7a862b3fa662d8e34401f9d021 Mon Sep 17 00:00:00 2001 From: mei23 Date: Wed, 16 Aug 2023 22:32:42 +0900 Subject: [PATCH] Fix Twitter preview --- package.json | 2 +- pnpm-lock.yaml | 13 ++++++++----- src/server/web/url-preview.ts | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7cf07b86e3d4..41631c175c28 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "stringz": "2.1.0", "stylus": "0.59.0", "stylus-loader": "7.1.3", - "summaly": "mei23/summaly#3.8.2", + "summaly": "mei23/summaly#3.8.3", "suncalc": "1.9.0", "systeminformation": "5.17.12", "syuilo-password-strength": "0.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e90748e1412a..99def336b8bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -345,8 +345,8 @@ dependencies: specifier: 7.1.3 version: 7.1.3(stylus@0.59.0)(webpack@5.88.1) summaly: - specifier: mei23/summaly#3.8.2 - version: github.com/mei23/summaly/6ecd8594c46be3d092583e9bc8a67fec1d0f4012 + specifier: mei23/summaly#3.8.3 + version: github.com/mei23/summaly/40c5faae6b4e2f2660f6acc28ab97beaeb580433 suncalc: specifier: 1.9.0 version: 1.9.0 @@ -7687,6 +7687,7 @@ packages: /memory-pager@1.5.0: resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==} + requiresBuild: true dev: false optional: true @@ -8150,6 +8151,7 @@ packages: /node-gyp-build-optional-packages@5.0.3: resolution: {integrity: sha512-k75jcVzk5wnnc/FMxsf4udAoTEUv2jY3ycfdSd3yWu6Cnd1oee6/CfZJApyscA4FJOmdoixWwiwOyf16RzD5JA==} hasBin: true + requiresBuild: true dev: false optional: true @@ -9997,6 +9999,7 @@ packages: /sparse-bitfield@3.0.3: resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==} + requiresBuild: true dependencies: memory-pager: 1.5.0 dev: false @@ -11715,10 +11718,10 @@ packages: sshpk: 1.17.0 dev: false - github.com/mei23/summaly/6ecd8594c46be3d092583e9bc8a67fec1d0f4012: - resolution: {tarball: https://codeload.github.com/mei23/summaly/tar.gz/6ecd8594c46be3d092583e9bc8a67fec1d0f4012} + github.com/mei23/summaly/40c5faae6b4e2f2660f6acc28ab97beaeb580433: + resolution: {tarball: https://codeload.github.com/mei23/summaly/tar.gz/40c5faae6b4e2f2660f6acc28ab97beaeb580433} name: summaly - version: 3.8.2 + version: 3.8.3 dependencies: cheerio: 1.0.0-rc.12 escape-regexp: 0.0.1 diff --git a/src/server/web/url-preview.ts b/src/server/web/url-preview.ts index e1a83faa19be..8d37f2a0178f 100644 --- a/src/server/web/url-preview.ts +++ b/src/server/web/url-preview.ts @@ -21,7 +21,7 @@ function getSummaryInstance(): Summary { if (summaryInstance) return summaryInstance; summaryInstance = new Summary({ allowedPlugins: [ - 'twitter', + //'twitter', 'youtube', 'dlsite', ],