Notes with null text incorrectly send null content in NoteEntity responses
https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/src/branch/dev/Iceshrimp.Backend/Controllers/Mastodon/Schemas/Entities/StatusEntity.cs#L14 shows the status.content field as nullable.
Per the Mastodon API documentation (https://docs.joinmastodon.org/entities/Status/#content) this is incorrect.
Some discussion at https://chat.iceshrimp.dev/#narrow/stream/6-support/topic/.2ENET.20pachli.20.28client.29.20empty.20timelines.20on.20name.20with.20space
State: Untriaged → Triaged
Component: Mastodon client API
Target version: v2024.1-beta1
State: Triaged → Fixed
Summary changed:
Expand ›
Released in version: v2024.1-beta1
Released in version: v2024.1-beta1
Released in version: v2024.1-beta1
Project
Iceshrimp.NETPriority
NormalN
Type
BugB
State
FixedF
Assignee
Laura HausmannSubsystem
BackendB
Component
Mastodon client APIM
Affected version
UnknownTarget version
v2024.1-beta1V
Released in version
v2024.1-beta1V
This is actually correct, e.g. when deleting a status, mastodon does not send the
contentfield, only thetextfield. There was a bug, however, in that a nulltextvalue was also causing it to return a nullcontent, as compared to mastodon, which sends an empty string instead.