Revert "preserve non-text details in note summaries"
This reverts commit 23659ab013.
This commit is contained in:
@@ -18,12 +18,14 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
|
|||||||
return '(⛔)';
|
return '(⛔)';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (note.cw != null) {
|
||||||
|
return `CW: ${note.cw}`;
|
||||||
|
}
|
||||||
|
|
||||||
let summary = '';
|
let summary = '';
|
||||||
|
|
||||||
// 本文
|
// 本文
|
||||||
if (note.cw != null) {
|
if (note.text) {
|
||||||
summary += `CW: ${note.cw}`;
|
|
||||||
} else if (note.text) {
|
|
||||||
summary += note.text;
|
summary += note.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,12 +23,14 @@ export const getNoteSummary = (note?: Misskey.entities.Note | null): string => {
|
|||||||
return `(${i18n.ts.invisibleNote})`;
|
return `(${i18n.ts.invisibleNote})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (note.cw != null) {
|
||||||
|
return `CW: ${note.cw}`;
|
||||||
|
}
|
||||||
|
|
||||||
let summary = '';
|
let summary = '';
|
||||||
|
|
||||||
// 本文
|
// 本文
|
||||||
if (note.cw != null) {
|
if (note.text) {
|
||||||
summary += `CW: ${note.cw}`;
|
|
||||||
} else if (note.text) {
|
|
||||||
summary += note.text;
|
summary += note.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user