Update webfingering a little, add tests (#236)

* Update webfingering a little, add tests

* fix broken tests oops
This commit is contained in:
tobi
2021-09-20 16:46:45 +02:00
committed by GitHub
parent 92186c8c6f
commit b315eee43b
9 changed files with 325 additions and 74 deletions

View File

@ -371,7 +371,7 @@ func (p *processor) GetFediStatusReplies(ctx context.Context, requestedUsername
return data, nil
}
func (p *processor) GetWebfingerAccount(ctx context.Context, requestedUsername string, requestURL *url.URL) (*apimodel.WellKnownResponse, gtserror.WithCode) {
func (p *processor) GetWebfingerAccount(ctx context.Context, requestedUsername string) (*apimodel.WellKnownResponse, gtserror.WithCode) {
// get the account the request is referring to
requestedAccount, err := p.db.GetLocalAccountByUsername(ctx, requestedUsername)
if err != nil {