[backend] Correctly set CW on note update

Resolves: #547
This commit is contained in:
Laura Hausmann 2024-05-01 23:47:51 +02:00
parent 84af6f49c8
commit df5734523f
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -584,7 +584,7 @@ export async function updateNote(value: string | IObject, resolver?: Resolver) {
text = await htmlToMfm(post.content, post.tag); text = await htmlToMfm(post.content, post.tag);
} }
const cw = post.sensitive && post.summary; const cw = post.summary === "" ? null : post.summary;
// File parsing // File parsing
const fileList = post.attachment const fileList = post.attachment