Skip to content

Commit

Permalink
リモートクリップ/リモートplay機能のURLで外部サイト警告が出る問題を修正 (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Dec 21, 2024
1 parent b87fc15 commit 02b715f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 1.2.1
Cherrypick 4.13.0
Cherrypick 4.13.0
Misskey 2024.10.1

### Release Date
Expand All @@ -15,11 +15,12 @@ Misskey 2024.10.1
- ユーザー設定全般のデータセーバー、メディアの読み込みを無効化が無視されてたのを修正
- センシティブ画像を開く時に年齢確認ダイアログを表示する機能が無視されてたのを修正
- 画像左上にALT/GIF/APNG/センシティブの表示を追加
- Fix: リモートクリップ/リモートplay機能のURLで外部サイト警告が出る問題を修正 [#581](https://github.com/yojo-art/cherrypick/pull/581)

### Server

## 1.2.0
Cherrypick 4.13.0
Cherrypick 4.13.0
Misskey 2024.10.1

### Release Date
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:is="self ? 'MkA' : 'a'" ref="el" style="word-break: break-all;" class="_link" :[attr]="self ? url_string.substring(local.length) : url_string" :rel="rel ?? 'nofollow noopener'" :target="target"
:behavior="props.navigationBehavior"
:title="url_string"
@click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, props.url)"
@click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, url_string)"
>
<slot></slot>
<i v-if="target === '_blank' && !hideIcon" class="ti ti-external-link" :class="$style.icon"></i>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkUrlPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</template>
<div v-else>
<component :is="self ? 'MkA' : 'a'" :class="[$style.link, { [$style.compact]: compact }]" :[attr]="self ? url_string.substring(local.length) : url_string" rel="nofollow noopener" :target="target" :title="url_string" @click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, url)">
<component :is="self ? 'MkA' : 'a'" :class="[$style.link, { [$style.compact]: compact }]" :[attr]="self ? url_string.substring(local.length) : url_string" rel="nofollow noopener" :target="target" :title="url_string" @click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, url_string)">
<div v-if="thumbnail && !sensitive" :class="[$style.thumbnail, { [$style.thumbnailBlur]: sensitive }]" :style="defaultStore.state.dataSaver.urlPreview ? '' : `background-image: url('${thumbnail}')`">
</div>
<article :class="$style.body">
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/MkUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<component
:is="self ? 'MkA' : 'a'" ref="el" :class="$style.root" class="_link" :[attr]="self ? url_string.substring(local.length) : url_string" :rel="rel ?? 'nofollow noopener'" :target="target"
:behavior="props.navigationBehavior"
@click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, props.url)"
@click.stop="(ev: MouseEvent) => warningExternalWebsite(ev, url_string)"
@contextmenu.stop="() => {}"
>
<template v-if="!self">
Expand Down

0 comments on commit 02b715f

Please sign in to comment.