Skip to content

Ignore empty content warnings in API (resolves #977)

What does this MR do?

Modify the Misskey and Mastodon post APIs to treat a blank / empty content warning as if it were null. This avoids a spurious validation error when posting with certain clients.

Specific changes:

  • ignore empty CW with creating / editing notes
  • don't parse empty strings in timelineArgs.ts
  • don't use empty CW as placeholder in megalodon

Contribution Guidelines

By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this merge request
Edited by Hazelnoot

Merge request reports

Loading