[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
This commit is contained in:
tobi 2022-09-04 14:41:42 +02:00 committed by GitHub
commit 006c8b604b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 205 additions and 1039 deletions

View file

@ -150,10 +150,7 @@ var Start action.GTSAction = func(ctx context.Context) error {
}
// build web module
webModule, err := web.New(processor)
if err != nil {
return fmt.Errorf("error creating web module: %s", err)
}
webModule := web.New(processor)
// build client api modules
authModule := auth.New(dbService, idp, processor)

View file

@ -108,10 +108,7 @@ var Start action.GTSAction = func(ctx context.Context) error {
}
// build web module
webModule, err := web.New(processor)
if err != nil {
return fmt.Errorf("error creating web module: %s", err)
}
webModule := web.New(processor)
// build client api modules
authModule := auth.New(dbService, idp, processor)