diff --git a/files/routes/search.py b/files/routes/search.py index 92d4af1da..13bb77ed5 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -184,7 +184,8 @@ def searchposts(v): @auth_required def searchcomments(v): - abort(403) + return {"error": "Searching comments is disabled temporarily."}, 403 + query = request.values.get("q", '').strip() try: page = max(1, int(request.values.get("page", 1)))