fix: limit search results from 40 to 5 (#1336)
40 is too much, also this aligns us with the Mastodon frontend UI.
This commit is contained in:
parent
a72dec0a98
commit
015fe0080c
|
@ -1,7 +1,7 @@
|
||||||
import { get, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax'
|
import { get, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax'
|
||||||
import { auth, basename } from './utils'
|
import { auth, basename } from './utils'
|
||||||
|
|
||||||
export function search (instanceName, accessToken, query, resolve = true, limit = 40, signal = null) {
|
export function search (instanceName, accessToken, query, resolve = true, limit = 5, signal = null) {
|
||||||
let url = `${basename(instanceName)}/api/v1/search?` + paramsString({
|
let url = `${basename(instanceName)}/api/v1/search?` + paramsString({
|
||||||
q: query,
|
q: query,
|
||||||
resolve,
|
resolve,
|
||||||
|
|
Loading…
Reference in a new issue