Merge pull request '[PR]: Import Content Warning Tags When Importing Posts From Mastodon' (#10481) from dvd/calckey:fix/cw-import into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10481
This commit is contained in:
Kainoa Kanter 2023-07-13 01:58:02 +00:00
commit 1514d1b8d0

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: [],