add missing instance mandatory CW to frontend getNoteSummary
This commit is contained in:
parent
2e41f580e3
commit
f3d7229c55
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ export const getNoteSummary = (note?: Misskey.entities.Note | null): string => {
|
|||
if (note.user.mandatoryCW) {
|
||||
cw = appendContentWarning(cw, note.user.mandatoryCW);
|
||||
}
|
||||
if (note.user.instance?.mandatoryCW) {
|
||||
cw = appendContentWarning(cw, note.user.instance.mandatoryCW);
|
||||
}
|
||||
|
||||
// 本文
|
||||
if (cw != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue