mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
fix(frontend): リストがセンシティブ設定を考慮するように
This commit is contained in:
parent
abd08e70ce
commit
8204d686cc
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<template>
|
||||
<template v-for="file in note.files">
|
||||
<div v-if="file.isSensitive && !showingFiles.includes(file.id)" :class="[$style.img, { [$style.square]: square }]" @click="showingFiles.push(file.id)">
|
||||
<div
|
||||
v-if="(defaultStore.state.nsfw === 'force' || file.isSensitive) && defaultStore.state.nsfw !== 'ignore' && !showingFiles.includes(file.id)"
|
||||
:class="[$style.img, { [$style.square]: square }]"
|
||||
@click="showingFiles.push(file.id)"
|
||||
>
|
||||
<!-- TODO: 画像以外のファイルに対応 -->
|
||||
<ImgWithBlurhash
|
||||
v-if="FILE_TYPE_BROWSERSAFE.includes(file.type) && (file.type.startsWith('image/') || (file.type.startsWith('video/') && file.thumbnailUrl != null))"
|
||||
|
|
Loading…
Reference in a new issue