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:
Nolan Lawson 2019-07-17 21:34:37 -07:00 committed by GitHub
parent a72dec0a98
commit 015fe0080c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
import { get, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax'
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({
q: query,
resolve,