Skip to content

Commit

Permalink
x.com対応
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 authored and fs5m8 committed Nov 28, 2023
1 parent 39575de commit 46d8b56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/common/views/components/url-preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
1 change: 0 additions & 1 deletion src/server/web/url-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function getSummaryInstance(): Summary {
if (summaryInstance) return summaryInstance;
summaryInstance = new Summary({
allowedPlugins: [
'twitter',
'youtube',
],
});
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 46d8b56

Please sign in to comment.