1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 01:15:29 +02:00

enhance(frontend): URLプレビューをユーザーサイドで無効化できるように (#16064)

* enhance(frontend): URLプレビューをユーザーサイドで無効化できるように

* fix lint

* Update Changelog

* fix: 設定項目をデータセーバーに移動
This commit is contained in:
かっこかり
2025-05-20 13:42:30 +09:00
committed by GitHub
parent 7888f771c3
commit f74c38f313
14 changed files with 44 additions and 17 deletions

View File

@@ -2,7 +2,12 @@
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { computed } from 'vue';
import { hostname } from '@@/js/config.js';
import { instance } from '@/instance.js';
import { prefer } from '@/preferences.js';
export const isEnabledUrlPreview = computed(() => (instance.enableUrlPreview && !prefer.r.dataSaver.value.disableUrlPreview));
export function transformPlayerUrl(url: string): string {
const urlObj = new URL(url);