[bugfix] Don't serialize instance account if not set (#603)

* omit contactAccount from json if not set

* test instance serialization
This commit is contained in:
tobi
2022-05-24 18:20:13 +02:00
committed by GitHub
parent 2d748a68ae
commit 196d542e4a
2 changed files with 47 additions and 1 deletions

View File

@@ -571,7 +571,6 @@ func (c *converter) InstanceToAPIInstance(ctx context.Context, i *gtsmodel.Insta
Email: i.ContactEmail,
Version: i.Version,
Stats: make(map[string]int),
ContactAccount: &model.Account{},
}
// if the requested instance is *this* instance, we can add some extra information