summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-27 16:44:33 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-27 16:44:33 +0200
commit73d5766572eb12c2f728bcce96013ffc67151ba9 (patch)
tree9a75991fb13e1144aa653f87da21e372987a90dc
parent[chore] Add test for dereferencing Owncast service account (#613) (diff)
downloadgotosocial-73d5766572eb12c2f728bcce96013ffc67151ba9.tar.xz
[chore] Debug failed account get (#612)
-rw-r--r--internal/processing/search.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/processing/search.go b/internal/processing/search.go
index dd2f88424..690a6eeaf 100644
--- a/internal/processing/search.go
+++ b/internal/processing/search.go
@@ -202,8 +202,12 @@ func (p *processor) searchAccountByMention(ctx context.Context, authed *oauth.Au
}
if acctURI.Scheme == "https" || acctURI.Scheme == "http" {
- // return the attempt to get the remove account
- return p.federator.GetRemoteAccount(ctx, authed.Account.Username, acctURI, true, true)
+ acct, err := 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
}
}