mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user