Skip to content

Conversation

@notJoon
Copy link
Contributor

@notJoon notJoon commented Aug 9, 2025

Description

fixes #177

  • Updated the schemas to explicitly accept null values using .nullable() for all optional fields:

    • status, media_ids, poll, spoiler_text, language in statusSchema
    • in_reply_to_id, quote_id, visibility, scheduled_at in createStatusSchema
  • Updated the formatPostContent function to accept null values

Copy link
Contributor

@ThisIsMissEm ThisIsMissEm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me, but we should increase test coverage. I also want to pull this change locally and check a few things.

@ThisIsMissEm
Copy link
Contributor

@dahlia I would like to see those tests merged, but I can also do it as a follow up?

@ThisIsMissEm ThisIsMissEm merged commit 8518940 into fedify-dev:main Aug 10, 2025
2 checks passed
dahlia added a commit that referenced this pull request Aug 10, 2025
@notJoon notJoon deleted the fix/issue-177 branch August 10, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nulls in object submitted to /api/statuses cause 400

3 participants