Fix spoiler_text type

This commit is contained in:
Alex Gleason 2023-07-02 14:13:14 -05:00
parent 07b406c25c
commit cacf51ea36
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ async function toStatus(event: Event<1>) {
in_reply_to_id: replyTag ? replyTag[1] : null,
in_reply_to_account_id: null,
sensitive: !!cw,
spoiler_text: (cw ? cw[1] : subject?.[1]) || null,
spoiler_text: (cw ? cw[1] : subject?.[1]) || '',
visibility: 'public',
language: event.tags.find((tag) => tag[0] === 'lang')?.[1] || null,
replies_count: 0,