Revert "respect CWs in note summaries"

This reverts commit cf49701c2a.
This commit is contained in:
Hazel K 2024-10-02 00:49:26 -04:00
parent 5a36c91bf1
commit 19204851a0
2 changed files with 8 additions and 12 deletions

View File

@ -18,15 +18,13 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
return '(⛔)';
}
if (note.cw != null) {
return `CW: ${note.cw}`;
}
let summary = '';
// 本文
if (note.text) {
summary += note.text;
if (note.cw != null) {
summary += note.cw;
} else {
summary += note.text ? note.text : '';
}
// ファイルが添付されているとき

View File

@ -23,15 +23,13 @@ export const getNoteSummary = (note?: Misskey.entities.Note | null): string => {
return `(${i18n.ts.invisibleNote})`;
}
if (note.cw != null) {
return `CW: ${note.cw}`;
}
let summary = '';
// 本文
if (note.text) {
summary += note.text;
if (note.cw != null) {
summary += note.cw;
} else {
summary += note.text ? note.text : '';
}
// ファイルが添付されているとき