Default search limit should be 40
authorMark Felder <feld@FreeBSD.org>
Wed, 29 May 2019 13:06:26 +0000 (08:06 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 29 May 2019 13:06:26 +0000 (08:06 -0500)
https://docs.joinmastodon.org/api/rest/search/

lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 0fe09c28583c2ed29fc93022673a0a31c699de54..2110027c3da313d238f06894c21fa38a54071f78 100644 (file)
@@ -1084,7 +1084,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
       from([a, o] in Activity.with_preloaded_object(Activity),
         where: fragment("?->>'type' = 'Create'", a.data),
         where: "https://www.w3.org/ns/activitystreams#Public" in a.recipients,
-        limit: 20
+        limit: 40
       )
 
     q =