[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);
}
const cw = post.sensitive && post.summary;
const cw = post.summary === "" ? null : post.summary;
// File parsing
const fileList = post.attachment