From 659574e4571d239d1933b1a6da8bccb8349a36a0 Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Fri, 20 Oct 2023 00:27:24 +0200
Subject: upd: hide files in post form by default

Closes transfem-org/Sharkey#99
---
 packages/frontend/src/components/MkSubNoteContent.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkSubNoteContent.vue')

diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue
index 496ae3e457..d1d4cef066 100644
--- a/packages/frontend/src/components/MkSubNoteContent.vue
+++ b/packages/frontend/src/components/MkSubNoteContent.vue
@@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 		</div>
 		<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`" v-on:click.stop>RN: ...</MkA>
 	</div>
-	<details v-if="note.files.length > 0" :open="!defaultStore.state.collapseFiles">
+	<details v-if="note.files.length > 0" :open="!defaultStore.state.collapseFiles && !hideFiles">
 		<summary>({{ i18n.t('withNFiles', { n: note.files.length }) }})</summary>
 		<MkMediaList :mediaList="note.files"/>
 	</details>
@@ -51,6 +51,7 @@ const props = defineProps<{
 	note: Misskey.entities.Note;
 	translating?: boolean;
 	translation?: any;
+	hideFiles?: boolean;
 }>();
 
 const router = useRouter();
-- 
cgit v1.2.3-freya

