allow different host + accountDomain (#103)

* allow different host + accountDomain

* use accountDomain in tags
This commit is contained in:
Tobi Smethurst
2021-07-19 18:42:08 +02:00
committed by GitHub
parent 677490bc4e
commit b1a4f38e38
7 changed files with 46 additions and 13 deletions

View File

@@ -304,7 +304,7 @@ func (p *processor) GetWebfingerAccount(ctx context.Context, requestedUsername s
// return the webfinger representation
return &apimodel.WellKnownResponse{
Subject: fmt.Sprintf("acct:%s@%s", requestedAccount.Username, p.config.Host),
Subject: fmt.Sprintf("acct:%s@%s", requestedAccount.Username, p.config.AccountDomain),
Aliases: []string{
requestedAccount.URI,
requestedAccount.URL,