diff options
author | 2024-10-21 14:04:50 +0200 | |
---|---|---|
committer | 2024-10-21 14:04:50 +0200 | |
commit | 8a93300ac43ffd70ca687d71ee8eefdb755e6a58 (patch) | |
tree | 4f091a3e8ad082738f65f5ab47a1be910bc94933 /internal/api/model | |
parent | [chore]: Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#3469) (diff) | |
download | gotosocial-8a93300ac43ffd70ca687d71ee8eefdb755e6a58.tar.xz |
[feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473)v0.17.1
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/account.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go index 3ad5d5399..a27033d5d 100644 --- a/internal/api/model/account.go +++ b/internal/api/model/account.go @@ -68,6 +68,10 @@ type Account struct { // Description of this account's avatar, for alt text. // example: A cute drawing of a smiling sloth. AvatarDescription string `json:"avatar_description,omitempty"` + // Database ID of the media attachment for this account's avatar image. + // Omitted if no avatar uploaded for this account (ie., default avatar). + // example: 01JAJ3XCD66K3T99JZESCR137W + AvatarMediaID string `json:"avatar_media_id,omitempty"` // Web location of the account's header image. // example: https://example.org/media/some_user/header/original/header.jpeg Header string `json:"header"` @@ -78,6 +82,10 @@ type Account struct { // Description of this account's header, for alt text. // example: A sunlit field with purple flowers. HeaderDescription string `json:"header_description,omitempty"` + // Database ID of the media attachment for this account's header image. + // Omitted if no header uploaded for this account (ie., default header). + // example: 01JAJ3XCD66K3T99JZESCR137W + HeaderMediaID string `json:"header_media_id,omitempty"` // Number of accounts following this account, according to our instance. FollowersCount int `json:"followers_count"` // Number of account's followed by this account, according to our instance. |