diff options
author | 2022-07-05 14:03:44 +0200 | |
---|---|---|
committer | 2022-07-05 14:03:44 +0200 | |
commit | b61b000e0a560058969abffa3ec81a288baf5f1c (patch) | |
tree | 18e85043d9d8de39a1604a6877c513e0d89a39d6 /internal/api/model/instance.go | |
parent | [docs] Update doc images to versions with current styling (#689) (diff) | |
download | gotosocial-b61b000e0a560058969abffa3ec81a288baf5f1c.tar.xz |
[bugfix] Fix incorrect domain showing in profiles (#693)
* use instance account_domain in profile
* add instance account_domain field
Diffstat (limited to 'internal/api/model/instance.go')
-rw-r--r-- | internal/api/model/instance.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/api/model/instance.go b/internal/api/model/instance.go index e01710e34..721bb8fce 100644 --- a/internal/api/model/instance.go +++ b/internal/api/model/instance.go @@ -25,8 +25,13 @@ import "mime/multipart" // swagger:model instance type Instance struct { // The URI of the instance. - // example: https://example.org + // example: https://gts.example.org URI string `json:"uri,omitempty"` + // The domain of accounts on this instance. + // This will not necessarily be the same as + // simply the Host part of the URI. + // example: example.org + AccountDomain string `json:"account_domain,omitempty"` // The title of the instance. // example: GoToSocial Example Instance Title string `json:"title,omitempty"` |