Skip to content

MastoAPI: Make Card title and desc non-nil

shadowfacts requested to merge shadowfacts/pleroma:patch-4 into develop

Per the API docs, the title and description fields of the Card entity should never be null: https://docs.joinmastodon.org/api/entities/#card

Being null can cause issues parsing Card objects in more strictly typed languages (e.g. Swift). This falls back on an empty string if the parser did not return anything.

Merge request reports