mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
Revert "preserve non-text details in note summaries"
This reverts commit 23659ab013
.
This commit is contained in:
parent
fa176ab543
commit
2cad08001a
2 changed files with 10 additions and 6 deletions
|
@ -18,12 +18,14 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
|
|||
return '(⛔)';
|
||||
}
|
||||
|
||||
if (note.cw != null) {
|
||||
return `CW: ${note.cw}`;
|
||||
}
|
||||
|
||||
let summary = '';
|
||||
|
||||
// 本文
|
||||
if (note.cw != null) {
|
||||
summary += `CW: ${note.cw}`;
|
||||
} else if (note.text) {
|
||||
if (note.text) {
|
||||
summary += note.text;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,12 +23,14 @@ 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.cw != null) {
|
||||
summary += `CW: ${note.cw}`;
|
||||
} else if (note.text) {
|
||||
if (note.text) {
|
||||
summary += note.text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue