mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 23:32:24 -05:00
[bugfix] Fix incorrect domain showing in profiles (#693)
* use instance account_domain in profile * add instance account_domain field
This commit is contained in:
parent
b6be973d40
commit
b61b000e0a
4 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue