From 128d0f0d4e2b9d8b99108ef550c4f63f6329e03d Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 24 May 2022 10:08:57 +0200 Subject: [PATCH] remove isHidden and its uses The `isHidden` attribute is not being set any more and is thus removed. Handling in the client is no longer necessary. --- packages/backend/src/misc/get-note-summary.ts | 4 ---- packages/backend/src/models/schema/note.ts | 4 ---- packages/client/src/components/note-detailed.vue | 1 - packages/client/src/components/note.vue | 1 - packages/client/src/components/sub-note-content.vue | 1 - packages/client/src/scripts/get-note-summary.ts | 4 ---- 6 files changed, 15 deletions(-) diff --git a/packages/backend/src/misc/get-note-summary.ts b/packages/backend/src/misc/get-note-summary.ts index 3f35ccee8..45fb50964 100644 --- a/packages/backend/src/misc/get-note-summary.ts +++ b/packages/backend/src/misc/get-note-summary.ts @@ -9,10 +9,6 @@ export const getNoteSummary = (note: Packed<'Note'>): string => { return `(❌⛔)`; } - if (note.isHidden) { - return `(⛔)`; - } - let summary = ''; // 本文 diff --git a/packages/backend/src/models/schema/note.ts b/packages/backend/src/models/schema/note.ts index cdf4b9a54..292bbb82f 100644 --- a/packages/backend/src/models/schema/note.ts +++ b/packages/backend/src/models/schema/note.ts @@ -52,10 +52,6 @@ export const packedNoteSchema = { optional: true, nullable: true, ref: 'Note', }, - isHidden: { - type: 'boolean', - optional: true, nullable: false, - }, visibility: { type: 'string', optional: false, nullable: false, diff --git a/packages/client/src/components/note-detailed.vue b/packages/client/src/components/note-detailed.vue index e7bbd70a2..072db16e3 100644 --- a/packages/client/src/components/note-detailed.vue +++ b/packages/client/src/components/note-detailed.vue @@ -54,7 +54,6 @@

- ({{ i18n.ts.private }}) RN: diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index e6a35fe41..eaead8e78 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -43,7 +43,6 @@

- ({{ i18n.ts.private }}) RN: diff --git a/packages/client/src/components/sub-note-content.vue b/packages/client/src/components/sub-note-content.vue index 25ab883f4..9ee180345 100644 --- a/packages/client/src/components/sub-note-content.vue +++ b/packages/client/src/components/sub-note-content.vue @@ -1,7 +1,6 @@