[bugfix] Fix incorrect domain showing in profiles (#693)

* use instance account_domain in profile

* add instance account_domain field
This commit is contained in:
tobi
2022-07-05 14:03:44 +02:00
committed by GitHub
parent b6be973d40
commit b61b000e0a
4 changed files with 13 additions and 6 deletions

View File

@ -576,6 +576,8 @@ func (c *converter) InstanceToAPIInstance(ctx context.Context, i *gtsmodel.Insta
// if the requested instance is *this* instance, we can add some extra information
if host := config.GetHost(); i.Domain == host {
mi.AccountDomain = config.GetAccountDomain()
if ia, err := c.db.GetInstanceAccount(ctx, ""); err == nil {
if ia.HeaderMediaAttachment != nil {
// take instance account header as instance thumbnail