mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature/frontend] Allow setting alt-text for avatar + header (#3086)
This commit is contained in:
@@ -78,11 +78,23 @@ import (
|
||||
// description: Avatar of the user.
|
||||
// type: file
|
||||
// -
|
||||
// name: avatar_description
|
||||
// in: formData
|
||||
// description: Description of avatar image, for alt-text.
|
||||
// type: string
|
||||
// allowEmptyValue: true
|
||||
// -
|
||||
// name: header
|
||||
// in: formData
|
||||
// description: Header of the user.
|
||||
// type: file
|
||||
// -
|
||||
// name: header_description
|
||||
// in: formData
|
||||
// description: Description of header image, for alt-text.
|
||||
// type: string
|
||||
// allowEmptyValue: true
|
||||
// -
|
||||
// name: locked
|
||||
// in: formData
|
||||
// description: Require manual approval of follow requests.
|
||||
@@ -315,7 +327,9 @@ func parseUpdateAccountForm(c *gin.Context) (*apimodel.UpdateCredentialsRequest,
|
||||
form.DisplayName == nil &&
|
||||
form.Note == nil &&
|
||||
form.Avatar == nil &&
|
||||
form.AvatarDescription == nil &&
|
||||
form.Header == nil &&
|
||||
form.HeaderDescription == nil &&
|
||||
form.Locked == nil &&
|
||||
form.Source.Privacy == nil &&
|
||||
form.Source.Sensitive == nil &&
|
||||
|
Reference in New Issue
Block a user