mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user