From 46d8b567462f995a3c77f3a7e9562c23f3cffbdc Mon Sep 17 00:00:00 2001 From: mei23 Date: Sat, 19 Aug 2023 01:48:29 +0900 Subject: [PATCH] =?UTF-8?q?x.com=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/client/app/common/views/components/url-preview.vue | 2 +- src/server/web/url-preview.ts | 1 - yarn.lock | 6 +++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 81f1b2cda1..f618972f1b 100644 --- a/package.json +++ b/package.json @@ -153,7 +153,7 @@ "stringz": "2.1.0", "stylus": "0.62.0", "stylus-loader": "7.1.3", - "summaly": "git+https://github.com/mei23/summaly.git#3.6.0", + "summaly": "git+https://github.com/mei23/summaly.git#3.8.3", "syslog-pro": "1.0.0", "systeminformation": "5.21.18", "syuilo-password-strength": "0.0.1", diff --git a/src/client/app/common/views/components/url-preview.vue b/src/client/app/common/views/components/url-preview.vue index 0ddf8b8666..e4d99c3632 100644 --- a/src/client/app/common/views/components/url-preview.vue +++ b/src/client/app/common/views/components/url-preview.vue @@ -95,7 +95,7 @@ export default Vue.extend({ return; } - if (requestUrl.hostname == 'twitter.com') { + if (requestUrl.hostname === 'twitter.com' || requestUrl.hostname === 'mobile.twitter.com' || requestUrl.hostname === 'x.com') { const m = requestUrl.pathname.match(/^\/.+\/status(?:es)?\/(\d+)/); if (m) this.tweetId = m[1]; } diff --git a/src/server/web/url-preview.ts b/src/server/web/url-preview.ts index 1eaea74f52..4795c53e08 100644 --- a/src/server/web/url-preview.ts +++ b/src/server/web/url-preview.ts @@ -16,7 +16,6 @@ function getSummaryInstance(): Summary { if (summaryInstance) return summaryInstance; summaryInstance = new Summary({ allowedPlugins: [ - 'twitter', 'youtube', ], }); diff --git a/yarn.lock b/yarn.lock index d351faff71..44dae98773 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9103,9 +9103,9 @@ stylus@^0.59.0: sax "~1.2.4" source-map "^0.7.3" -"summaly@git+https://github.com/mei23/summaly.git#3.6.0": - version "3.6.0" - resolved "git+https://github.com/mei23/summaly.git#16aca62826d1485eec7456c5ca79967509c42cff" +"summaly@git+https://github.com/mei23/summaly.git#3.8.3": + version "3.8.3" + resolved "git+https://github.com/mei23/summaly.git#c22753b76e3e95714c2d77f14229bd5dabb04c22" dependencies: cheerio "1.0.0-rc.12" escape-regexp "0.0.1"