forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-11 22:21:50 +02:00
parent 81030fe03a
commit bf11097de9
2 changed files with 4 additions and 4 deletions

View File

@ -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"}

View File

@ -31,8 +31,8 @@
}
}
</style>
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%" width="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" height="100%" width="100%">
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="1200px" width="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" height="1200px" width="100%">
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
</marquee>
</marquee>