mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:22:24 -05:00
set a default limit of 25 to match the first available settings panel option
This commit is contained in:
parent
2b2095add4
commit
ab8cdd5df5
2 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ func (m *Module) TokensInfoGETHandler(c *gin.Context) {
|
|||
page, errWithCode := paging.ParseIDPage(c,
|
||||
0, // min limit
|
||||
100, // max limit
|
||||
20, // default limit
|
||||
25, // default limit
|
||||
)
|
||||
if errWithCode != nil {
|
||||
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default function TokensSearchForm() {
|
|||
// Populate search form using values from
|
||||
// urlQueryParams, to allow paging.
|
||||
const form = {
|
||||
limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "20" })
|
||||
limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "25" })
|
||||
};
|
||||
|
||||
// On mount, trigger search.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue