mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:42:25 -05:00
remove the zero length check, as lo, hi values might still be set
This commit is contained in:
parent
daa83cfd0d
commit
f8af213259
1 changed files with 0 additions and 5 deletions
|
|
@ -156,11 +156,6 @@ func (p *Processor) getStatusTimeline(
|
|||
return nil, gtserror.WrapWithCode(http.StatusInternalServerError, err)
|
||||
}
|
||||
|
||||
// Check for empty response.
|
||||
if len(apiStatuses) == 0 {
|
||||
return paging.EmptyResponse(), nil
|
||||
}
|
||||
|
||||
// Package returned API statuses as pageable response.
|
||||
return paging.PackageResponse(paging.ResponseParams{
|
||||
Items: xslices.ToAny(apiStatuses),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue