summaryrefslogtreecommitdiff
path: root/internal/processing/admin
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-05-01 15:11:22 +0200
committerLibravatar GitHub <noreply@github.com>2024-05-01 14:11:22 +0100
commit725a21b02721f92ed0420ed3f807ee921de77992 (patch)
tree3940e4b0a7cf3328357ccb86be971126ab2a12b5 /internal/processing/admin
parent[bugfix] Tidy up remaining references to workers in cmd (#2889) (diff)
downloadgotosocial-725a21b02721f92ed0420ed3f807ee921de77992.tar.xz
[feature] Page through accounts as moderator (#2881)
* [feature] Page through accounts as moderator * aaaaa * use COLLATE "C" for Postgres to ensure same ordering as SQLite * fix typo, test paging up * don't show moderation / info for our instance acct
Diffstat (limited to 'internal/processing/admin')
-rw-r--r--internal/processing/admin/accounts.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/processing/admin/accounts.go b/internal/processing/admin/accounts.go
index ca35b0a30..ba2a88ce6 100644
--- a/internal/processing/admin/accounts.go
+++ b/internal/processing/admin/accounts.go
@@ -115,8 +115,12 @@ func (p *Processor) AccountsGet(
return paging.EmptyResponse(), nil
}
- hi := accounts[count-1].ID
- lo := accounts[0].ID
+ var (
+ loAcct = accounts[count-1]
+ hiAcct = accounts[0]
+ lo = loAcct.Domain + "/@" + loAcct.Username
+ hi = hiAcct.Domain + "/@" + hiAcct.Username
+ )
items := make([]interface{}, 0, count)
for _, account := range accounts {