Skip to content

Commit

Permalink
URLプレビューのlangを廃止
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 22, 2023
1 parent 1f7f7c3 commit 18cae4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/client/app/common/views/components/url-preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
import { url as misskeyUrl, lang } from '../../../config';
import { url as misskeyUrl } from '../../../config';
export default Vue.extend({
i18n: i18n('common/views/components/url-preview.vue'),
Expand Down Expand Up @@ -147,11 +147,9 @@ export default Vue.extend({
requestUrl.hostname = 'www.youtube.com';
}
const requestLang = (lang || 'ja-JP').replace('ja-KS', 'ja-JP');
requestUrl.hash = '';
fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${requestLang}`).then(res => {
fetch(`/url?url=${encodeURIComponent(requestUrl.href)}`).then(res => {
res.json().then(info => {
if (info.url == null) return;
this.landingUrl = info.url;
Expand Down

0 comments on commit 18cae4d

Please sign in to comment.