Search: limit number of results (prevent DoS)
Compare changes
@@ -17,6 +17,8 @@ defmodule Pleroma.Web.MastodonAPI.SearchController do
@@ -77,7 +79,7 @@ defp search_options(params, user) do
This should prevent a DoS attack where a script requests GET /api/v2/search?q=AAAAAA&limit=99999999999 repeatedly