fix(frontend): 非ログイン状態でもaタグに画像のURLがリンクされている問題を修正 (MisskeyIO#505)

This commit is contained in:
まっちゃとーにゅ 2024-03-06 03:52:19 +09:00 committed by GitHub
parent 5739f5efc2
commit c9f576669f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div :class="[hide ? $style.hidden : $style.visible, (image.isSensitive && defaultStore.state.highlightSensitiveMedia) && $style.sensitive]" :style="darkMode ? '--c: rgb(255 255 255 / 2%);' : '--c: rgb(0 0 0 / 2%);'" @click="showHiddenContent">
<component
:is="disableImageLink ? 'div' : 'a'"
v-bind="disableImageLink ? {
:is="(image.isSensitive && !$i) || disableImageLink ? 'div' : 'a'"
v-bind="(image.isSensitive && !$i) || disableImageLink ? {
title: image.name,
class: $style.imageContainer,
} : {
@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
>
<ImgWithBlurhash
:hash="image.blurhash"
:src="(props.image.isSensitive && !$i) || (defaultStore.state.dataSaver.media && hide) ? null : url"
:src="(image.isSensitive && !$i) || (defaultStore.state.dataSaver.media && hide) ? null : url"
:forceBlurhash="hide"
:cover="hide || cover"
:alt="image.comment || image.name"