make limit for /api/v1/suggestions

This commit is contained in:
Hakaba Hitoyo 2018-09-09 13:57:23 +09:00
commit 4e1bb7bccb
3 changed files with 4 additions and 1 deletions

View file

@ -59,6 +59,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
enabled: Keyword.get(suggestions, :enabled, false),
thirdPartyEngine: Keyword.get(suggestions, :third_party_engine, ""),
timeout: Keyword.get(suggestions, :timeout, 5000),
limit: Keyword.get(suggestions, :limit, 23),
web: Keyword.get(suggestions, :web, "")
},
staffAccounts: staff_accounts,