mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 12:02:25 -06:00
stop paged endpoints returning null for empty items (#2597)
This commit is contained in:
parent
b614d33c40
commit
c13eb87ae7
2 changed files with 5 additions and 8 deletions
|
|
@ -201,9 +201,6 @@ func (p *Processor) GetVisibleAPIAccountsPaged(
|
|||
length int,
|
||||
) []interface{} {
|
||||
accounts := p.getVisibleAPIAccounts(ctx, 3, requester, next, length)
|
||||
if len(accounts) == 0 {
|
||||
return nil
|
||||
}
|
||||
items := make([]interface{}, len(accounts))
|
||||
for i, account := range accounts {
|
||||
items[i] = account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue