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.
This commit is contained in:
Johann150 2022-05-24 10:08:57 +02:00
parent cfa371b52b
commit 128d0f0d4e
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1
6 changed files with 0 additions and 15 deletions

View file

@ -9,10 +9,6 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
return `(❌⛔)`; return `(❌⛔)`;
} }
if (note.isHidden) {
return `(⛔)`;
}
let summary = ''; let summary = '';
// 本文 // 本文

View file

@ -52,10 +52,6 @@ export const packedNoteSchema = {
optional: true, nullable: true, optional: true, nullable: true,
ref: 'Note', ref: 'Note',
}, },
isHidden: {
type: 'boolean',
optional: true, nullable: false,
},
visibility: { visibility: {
type: 'string', type: 'string',
optional: false, nullable: false, optional: false, nullable: false,

View file

@ -54,7 +54,6 @@
</p> </p>
<div v-show="appearNote.cw == null || showContent" class="content"> <div v-show="appearNote.cw == null || showContent" class="content">
<div class="text"> <div class="text">
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA> <MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/> <Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
<a v-if="appearNote.renote != null" class="rp">RN:</a> <a v-if="appearNote.renote != null" class="rp">RN:</a>

View file

@ -43,7 +43,6 @@
</p> </p>
<div v-show="appearNote.cw == null || showContent" class="content" :class="{ collapsed, isLong }"> <div v-show="appearNote.cw == null || showContent" class="content" :class="{ collapsed, isLong }">
<div class="text"> <div class="text">
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
<MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA> <MkA v-if="appearNote.replyId" class="reply" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA>
<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/> <Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
<a v-if="appearNote.renote != null" class="rp">RN:</a> <a v-if="appearNote.renote != null" class="rp">RN:</a>

View file

@ -1,7 +1,6 @@
<template> <template>
<div class="wrmlmaau" :class="{ collapsed }"> <div class="wrmlmaau" :class="{ collapsed }">
<div class="body"> <div class="body">
<span v-if="note.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span> <span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
<MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="fas fa-reply"></i></MkA> <MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="fas fa-reply"></i></MkA>
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/> <Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>

View file

@ -10,10 +10,6 @@ export const getNoteSummary = (note: misskey.entities.Note): string => {
return `(${i18n.ts.deletedNote})`; return `(${i18n.ts.deletedNote})`;
} }
if (note.isHidden) {
return `(${i18n.ts.invisibleNote})`;
}
let summary = ''; let summary = '';
// 本文 // 本文