give ppl an explanation when searching comments

master
Aevann1 2022-10-01 11:38:14 +02:00
parent 5da772ab61
commit 7212fa44ef
1 changed files with 2 additions and 1 deletions

View File

@ -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)))