mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30:23 +01:00
fix
This commit is contained in:
parent
ca38bce4e5
commit
68d4a25d9a
1 changed files with 15 additions and 15 deletions
|
@ -20,25 +20,25 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
||||||
import {ref} from "vue";
|
import { ref } from 'vue';
|
||||||
import {notePage} from "@/filters/note.js";
|
import { notePage } from '@/filters/note.js';
|
||||||
import {i18n} from "@/i18n.js";
|
import { i18n } from '@/i18n.js';
|
||||||
import ImgWithBlurhash from "@/components/MkImgWithBlurhash.vue";
|
import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
|
||||||
import * as Misskey from "misskey-js";
|
import * as Misskey from 'misskey-js';
|
||||||
import {defaultStore} from "@/store.js";
|
import { defaultStore } from '@/store.js';
|
||||||
import {getStaticImageUrl} from "@/scripts/media-proxy.js";
|
import { getProxiedImageUrl, getStaticImageUrl } from '@/scripts/media-proxy.js';
|
||||||
|
|
||||||
let showingFiles = ref<string[]>([]);
|
|
||||||
|
|
||||||
function thumbnail(image: Misskey.entities.DriveFile): string {
|
|
||||||
return defaultStore.state.disableShowingAnimatedImages
|
|
||||||
? getStaticImageUrl(image.url)
|
|
||||||
: image.thumbnailUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
note: Misskey.entities.Note;
|
note: Misskey.entities.Note;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const showingFiles = ref<string[]>([]);
|
||||||
|
|
||||||
|
function thumbnail(image: Misskey.entities.DriveFile): string {
|
||||||
|
return defaultStore.state.disableShowingAnimatedImages
|
||||||
|
? getStaticImageUrl(image.url)
|
||||||
|
: image.thumbnailUrl ?? getProxiedImageUrl(image.url, 'preview');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
|
Loading…
Reference in a new issue