From 725a21b02721f92ed0420ed3f807ee921de77992 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 1 May 2024 15:11:22 +0200 Subject: [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 --- internal/processing/admin/accounts.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/processing/admin/accounts.go') 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 { -- cgit v1.2.3