diff options
author | 2023-03-02 03:06:40 -0800 | |
---|---|---|
committer | 2023-03-02 12:06:40 +0100 | |
commit | e6cde25466e03ec864cd9defed96957e741b5e7c (patch) | |
tree | 2fe1db6383efc9b788de8bb3f9926627874ccd7c /internal/api/client/instance | |
parent | [chore] move client/federator workerpools to Workers{} (#1575) (diff) | |
download | gotosocial-e6cde25466e03ec864cd9defed96957e741b5e7c.tar.xz |
[feature] Advertise rich text formats, support content_type field (#1370)
* Advertise rich text formats, support content_type field
* Update JSON in instance patch tests
* Replace format with content_type everywhere
* update migration to work with both pg and sqlite
* regenerate swagger docs
* update instance serialization + tests
* fix up
* learn to code tobi please, i'm begging you
---------
Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/client/instance')
-rw-r--r-- | internal/api/client/instance/instancepatch_test.go | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go index 0a508083c..6fb9b0d03 100644 --- a/internal/api/client/instance/instancepatch_test.go +++ b/internal/api/client/instance/instancepatch_test.go @@ -90,7 +90,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ @@ -188,7 +192,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ @@ -286,7 +294,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ @@ -435,7 +447,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ @@ -554,7 +570,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ @@ -689,7 +709,11 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() { "statuses": { "max_characters": 5000, "max_media_attachments": 6, - "characters_reserved_per_url": 25 + "characters_reserved_per_url": 25, + "supported_mime_types": [ + "text/plain", + "text/markdown" + ] }, "media_attachments": { "supported_mime_types": [ |