diff options
author | 2022-11-27 01:09:09 +0100 | |
---|---|---|
committer | 2022-11-27 00:09:09 +0000 | |
commit | c534230600002e8ba9fefcc56908897067038dec (patch) | |
tree | 0167be86791c3f919bdf69ca894d7f9fc30245e8 | |
parent | [chore] Set User-Agent header in transport (#1154) (diff) | |
download | gotosocial-c534230600002e8ba9fefcc56908897067038dec.tar.xz |
[bugfix] Use Host domain for UA (#1156)
In d6f4d196c978d81041ea99a32e2d6f63b0639472 we swapped to use the
AccountDomain but that actually goes against the intent of the change.
This reverts that change and uses the host domain again.
-rw-r--r-- | internal/transport/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go index f5cb7a829..24e6fceac 100644 --- a/internal/transport/controller.go +++ b/internal/transport/controller.go @@ -59,7 +59,7 @@ type controller struct { // NewController returns an implementation of the Controller interface for creating new transports func NewController(db db.DB, federatingDB federatingdb.DB, clock pub.Clock, client pub.HttpClient) Controller { applicationName := config.GetApplicationName() - host := config.GetAccountDomain() + host := config.GetHost() proto := config.GetProtocol() version := config.GetSoftwareVersion() |