remotes/1693045480750635534/spooky-22
Aevann1 2021-12-29 10:09:43 +02:00
parent 106a0305fa
commit cd4e9b6932
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ def searchposts(v):
if 'author' in criteria:
author = get_user(criteria['author'])
if author.is_private:
if author.is_private and v.admin_level < 2 and not v.eye:
if request.headers.get("Authorization"):
return {"error": f"@{author.username}'s profile is private; You can't use the 'author' syntax on them"}
return render_template(f"{template}search.html",
@ -214,7 +214,7 @@ def searchcomments(v):
if 'author' in criteria:
author = get_user(criteria['author'])
if author.is_private:
if author.is_private and v.admin_level < 2 and not v.eye:
if request.headers.get("Authorization"):
return {"error": f"@{author.username}'s profile is private; You can't use the 'author' syntax on them"}