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/MkNoteSimple.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/packages/frontend/src/components/MkNoteSimple.vue b/packages/frontend/src/components/MkNoteSimple.vue
index db5e26e5da..4f93b02b73 100644
--- a/packages/frontend/src/components/MkNoteSimple.vue
+++ b/packages/frontend/src/components/MkNoteSimple.vue
@@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 				<MkCwButton v-model="showContent" :note="note"/>
 			</p>
 			<div v-show="note.cw == null || showContent">
-				<MkSubNoteContent :class="$style.text" :note="note"/>
+				<MkSubNoteContent :hideFiles="hideFiles" :class="$style.text" :note="note"/>
 			</div>
 		</div>
 	</div>
@@ -32,6 +32,7 @@ import { $i } from '@/account.js';
 const props = defineProps<{
 	note: Misskey.entities.Note;
 	expandAllCws?: boolean;
+	hideFiles?: boolean;
 }>();
 
 let showContent = $ref(false);
-- 
cgit v1.2.3-freya

