diff --git a/files/routes/search.py b/files/routes/search.py index fc4e3463f8..6696d93052 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -68,7 +68,7 @@ def searchposts(v): if 'author' in criteria: author = get_user(criteria['author']) if not author: return {"error": f"User not found"} - if author.is_private and v.admin_level < 2 and not v.eye: + if author.is_private and author.id != v.id 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", @@ -216,7 +216,7 @@ def searchcomments(v): if 'author' in criteria: author = get_user(criteria['author']) if not author: return {"error": f"User not found"} - if author.is_private and v.admin_level < 2 and not v.eye: + if author.is_private and author.id != v.id 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"} diff --git a/files/templates/submission.html b/files/templates/submission.html index 0ff9e06cab..043a19cab3 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -31,8 +31,8 @@ } } - - + + :#marseywholesome: