diff --git a/package.json b/package.json index 3881049f8d..62459a2190 100644 --- a/package.json +++ b/package.json @@ -154,7 +154,7 @@ "stringz": "2.1.0", "stylus": "0.59.0", "stylus-loader": "7.1.0", - "summaly": "mei23/summaly#3.6.0", + "summaly": "mei23/summaly#3.8.3", "syslog-pro": "1.0.0", "systeminformation": "5.17.12", "syuilo-password-strength": "0.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ec76a266a..07a013e27a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -376,8 +376,8 @@ dependencies: specifier: 7.1.0 version: 7.1.0(stylus@0.59.0)(webpack@5.76.0) summaly: - specifier: mei23/summaly#3.6.0 - version: github.com/mei23/summaly/206c16cec38f9553990bf09cbbb0c89244ae76a3 + specifier: mei23/summaly#3.8.3 + version: github.com/mei23/summaly/40c5faae6b4e2f2660f6acc28ab97beaeb580433 syslog-pro: specifier: 1.0.0 version: 1.0.0 @@ -11302,10 +11302,10 @@ packages: version: 15.0.1 dev: false - github.com/mei23/summaly/206c16cec38f9553990bf09cbbb0c89244ae76a3: - resolution: {tarball: https://codeload.github.com/mei23/summaly/tar.gz/206c16cec38f9553990bf09cbbb0c89244ae76a3} + github.com/mei23/summaly/40c5faae6b4e2f2660f6acc28ab97beaeb580433: + resolution: {tarball: https://codeload.github.com/mei23/summaly/tar.gz/40c5faae6b4e2f2660f6acc28ab97beaeb580433} name: summaly - version: 3.6.0 + version: 3.8.3 dependencies: cheerio: 1.0.0-rc.12 escape-regexp: 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', ], });