fds
This commit is contained in:
parent
4a68cfc2f1
commit
1c71ebff45
1 changed files with 2 additions and 2 deletions
|
@ -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"}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue