Fix CW Import

This commit is contained in:
DVD 2023-07-13 09:05:38 +08:00
parent 6129d6eddb
commit c5eeb5e583
No known key found for this signature in database
GPG Key ID: 17C8715EFC9A5D4A

View File

@ -50,7 +50,7 @@ export async function importMastoPost(
text: text || undefined, text: text || undefined,
reply, reply,
renote: null, renote: null,
cw: post.sensitive, cw: post.object.sensitive ? post.object.summary : undefined,
localOnly: false, localOnly: false,
visibility: "hidden", visibility: "hidden",
visibleUsers: [], visibleUsers: [],