diff options
author | 2022-09-04 14:41:42 +0200 | |
---|---|---|
committer | 2022-09-04 14:41:42 +0200 | |
commit | 006c8b604b88fdddf1a2319e44aa37dd8777efd9 (patch) | |
tree | d1562a40f437005031405525a51a8003c2fd39d7 /internal/typeutils/internaltofrontend.go | |
parent | [bugfix] Fix status fields `in_reply_to_id` and `in_reply_to_account_id` not ... (diff) | |
download | gotosocial-006c8b604b88fdddf1a2319e44aa37dd8777efd9.tar.xz |
[feature] Set default header and avatar for API accounts to GtS ones (#799)
* validate web-asset-base-dir
* move default icons into converter
* always ensure avatar + header on api accounts
* update tests
* add default header
* don't return error from web module creation anymore
* tidy a bit
* use pngs for default avatars rather than svgs
Diffstat (limited to 'internal/typeutils/internaltofrontend.go')
-rw-r--r-- | internal/typeutils/internaltofrontend.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index 6ccbed340..0243e4732 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -190,6 +190,9 @@ func (c *converter) AccountToAPIAccountPublic(ctx context.Context, a *gtsmodel.A Suspended: suspended, } + c.ensureAvatar(accountFrontend) + c.ensureHeader(accountFrontend) + return accountFrontend, nil } |