diff options
Diffstat (limited to 'internal/db/bundb/relationship_follow_req.go')
-rw-r--r-- | internal/db/bundb/relationship_follow_req.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/bundb/relationship_follow_req.go b/internal/db/bundb/relationship_follow_req.go index a738f762b..2e058fbbb 100644 --- a/internal/db/bundb/relationship_follow_req.go +++ b/internal/db/bundb/relationship_follow_req.go @@ -387,6 +387,12 @@ func (r *relationshipDB) DeleteAccountFollowRequests(ctx context.Context, accoun return err } + if len(followReqIDs) == 0 { + // Nothing + // to delete. + return nil + } + defer func() { // Invalidate all account's incoming / outoing follow requests on return. r.state.Caches.DB.FollowRequest.Invalidate("AccountID", accountID) |