mirror of
1
Fork 0

[chore] Debug failed account get (#612)

This commit is contained in:
tobi 2022-05-27 16:44:33 +02:00 committed by GitHub
parent dc8cc7e364
commit 73d5766572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -202,8 +202,12 @@ func (p *processor) searchAccountByMention(ctx context.Context, authed *oauth.Au
} }
if acctURI.Scheme == "https" || acctURI.Scheme == "http" { if acctURI.Scheme == "https" || acctURI.Scheme == "http" {
// return the attempt to get the remove account acct, err := p.federator.GetRemoteAccount(ctx, authed.Account.Username, acctURI, true, true)
return p.federator.GetRemoteAccount(ctx, authed.Account.Username, acctURI, true, true) if err != nil {
logrus.Debugf("could not get remote account by mention %s with uri %s: %s", mention, acctURI, err)
return nil, err
}
return acct, nil
} }
} }