mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473)
This commit is contained in:
@@ -117,6 +117,9 @@ func (c *Converter) ensureAvatar(account *apimodel.Account) {
|
||||
|
||||
account.Avatar = avatar
|
||||
account.AvatarStatic = avatar
|
||||
|
||||
const defaultAviDesc = "Grayed-out line drawing of a cute sloth (default avatar)."
|
||||
account.AvatarDescription = defaultAviDesc
|
||||
}
|
||||
|
||||
// ensureHeader ensures that the given account has a value set
|
||||
@@ -134,4 +137,7 @@ func (c *Converter) ensureHeader(account *apimodel.Account) {
|
||||
h := config.GetProtocol() + "://" + config.GetHost() + defaultHeaderPath
|
||||
account.Header = h
|
||||
account.HeaderStatic = h
|
||||
|
||||
const defaultHeaderDesc = "Flat gray background (default header)."
|
||||
account.HeaderDescription = defaultHeaderDesc
|
||||
}
|
||||
|
Reference in New Issue
Block a user