From b4f7316a4cdf5ee2b43118aa6133a84a7ae4a5df Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:11:06 +0100 Subject: [feature] Make instance thumbnail configurable via admin panel (#973) * [feature] Make instance thumbnail configurable via admin panel * log db errors in InstanceToAPIInstance * only update instance in db if necessary * start adding tests * finish test --- docs/api/swagger.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'docs/api') diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 363948593..9eb10269b 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -969,6 +969,16 @@ definitions: example: https://example.org/files/instance/thumbnail.jpeg type: string x-go-name: Thumbnail + thumbnail_description: + description: Description of the instance thumbnail. + example: picture of a cute lil' friendly sloth + type: string + x-go-name: ThumbnailDescription + thumbnail_type: + description: MIME type of the instance thumbnail. + example: image/png + type: string + x-go-name: ThumbnailType title: description: The title of the instance. example: GoToSocial Example Instance @@ -3400,11 +3410,15 @@ paths: maximum: 5000 name: terms type: string - - description: Avatar of the instance. + - description: Thumbnail image to use for the instance. in: formData - name: avatar + name: thumbnail type: file - - description: Header of the instance. + - description: Image description of the submitted instance thumbnail. + in: formData + name: thumbnail_description + type: string + - description: Header image to use for the instance. in: formData name: header type: file -- cgit v1.2.3