summaryrefslogtreecommitdiff
path: root/internal/processing/common/account.go.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-02-01 12:45:02 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-01 12:45:02 +0000
commitc13eb87ae73ac1ba78e22fd3a6fd547038cb23cb (patch)
tree8e518c7e9de86018b4e09aa26efa29f9964bec40 /internal/processing/common/account.go.go
parent[feature] Try HTTP signature validation with and without query params for inc... (diff)
downloadgotosocial-c13eb87ae73ac1ba78e22fd3a6fd547038cb23cb.tar.xz
stop paged endpoints returning null for empty items (#2597)
Diffstat (limited to 'internal/processing/common/account.go.go')
-rw-r--r--internal/processing/common/account.go.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/processing/common/account.go.go b/internal/processing/common/account.go.go
index c4436e77e..f4bd06e76 100644
--- a/internal/processing/common/account.go.go
+++ b/internal/processing/common/account.go.go
@@ -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