add mandatory CW for instances
This commit is contained in:
parent
595c004a74
commit
5e0115335a
26 changed files with 282 additions and 8 deletions
|
|
@ -29,6 +29,9 @@ export const getNoteSummary = (note: Packed<'Note'>): 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