summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/followers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation/federatingdb/followers.go')
-rw-r--r--internal/federation/federatingdb/followers.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/federation/federatingdb/followers.go b/internal/federation/federatingdb/followers.go
index c7f636a12..69c68b8b9 100644
--- a/internal/federation/federatingdb/followers.go
+++ b/internal/federation/federatingdb/followers.go
@@ -54,7 +54,15 @@ func (f *federatingDB) Followers(ctx context.Context, actorIRI *url.URL) (follow
if follow.Account == nil {
followAccount, err := f.db.GetAccountByID(ctx, follow.AccountID)
if err != nil {
- return nil, fmt.Errorf("FOLLOWERS: db error getting account id %s: %s", follow.AccountID, err)
+ errWrapped := fmt.Errorf("FOLLOWERS: db error getting account id %s: %s", follow.AccountID, err)
+ if err == db.ErrNoEntries {
+ // no entry for this account id so it's probably been deleted and we haven't caught up yet
+ l.Error(errWrapped)
+ continue
+ } else {
+ // proper error
+ return nil, errWrapped
+ }
}
follow.Account = followAccount
}