Skip to content

Commit

Permalink
x.com対応
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 18, 2023
1 parent 299230f commit 6a6456c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

0 comments on commit 6a6456c

Please sign in to comment.