diff options
Diffstat (limited to 'internal/db/bundb/status.go')
-rw-r--r-- | internal/db/bundb/status.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/db/bundb/status.go b/internal/db/bundb/status.go index 9464cfadf..2c26a7df9 100644 --- a/internal/db/bundb/status.go +++ b/internal/db/bundb/status.go @@ -240,11 +240,11 @@ func (s *statusDB) statusChildren(ctx context.Context, status *gtsmodel.Status, } } - // only do one loop if we only want direct children - if onlyDirect { - return + // if we're not only looking for direct children of status, then do the same children-finding + // operation for the found child status too. + if !onlyDirect { + s.statusChildren(ctx, child, foundStatuses, false, minID) } - s.statusChildren(ctx, child, foundStatuses, false, minID) } } |