preserve non-text details in note summaries
This commit is contained in:
parent
6785996960
commit
23659ab013
|
@ -18,14 +18,12 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
|
|||
return '(⛔)';
|
||||
}
|
||||
|
||||
if (note.cw != null) {
|
||||
return `CW: ${note.cw}`;
|
||||
}
|
||||
|
||||
let summary = '';
|
||||
|
||||
// 本文
|
||||
if (note.text) {
|
||||
if (note.cw != null) {
|
||||
summary += `CW: ${note.cw}`;
|
||||
} else if (note.text) {
|
||||
summary += note.text;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,14 +23,12 @@ 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) {
|
||||
if (note.cw != null) {
|
||||
summary += `CW: ${note.cw}`;
|
||||
} else if (note.text) {
|
||||
summary += note.text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue