add missing instance mandatory CW to frontend getNoteSummary

This commit is contained in:
Hazelnoot 2025-09-12 14:04:08 -04:00
parent 2e41f580e3
commit f3d7229c55

View file

@ -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) {