From 7212fa44efd9adb96306e7e6a593566a671bed35 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 1 Oct 2022 11:38:14 +0200 Subject: [PATCH] give ppl an explanation when searching comments --- files/routes/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))