summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltofrontend.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-04 14:41:42 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-04 14:41:42 +0200
commit006c8b604b88fdddf1a2319e44aa37dd8777efd9 (patch)
treed1562a40f437005031405525a51a8003c2fd39d7 /internal/typeutils/internaltofrontend.go
parent[bugfix] Fix status fields `in_reply_to_id` and `in_reply_to_account_id` not ... (diff)
downloadgotosocial-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.go3
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
}