bb
This commit is contained in:
parent
07483f7991
commit
af6b74f614
2 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ def searchposts(v):
|
||||||
if 'author' in criteria:
|
if 'author' in criteria:
|
||||||
author = get_user(criteria['author'])
|
author = get_user(criteria['author'])
|
||||||
if not author: return {"error": f"User not found"}
|
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"):
|
if request.headers.get("Authorization"):
|
||||||
return {"error": f"@{author.username}'s profile is private; You can't use the 'author' syntax on them"}
|
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",
|
return render_template(f"{template}search.html",
|
||||||
|
@ -216,7 +216,7 @@ def searchcomments(v):
|
||||||
if 'author' in criteria:
|
if 'author' in criteria:
|
||||||
author = get_user(criteria['author'])
|
author = get_user(criteria['author'])
|
||||||
if not author: return {"error": f"User not found"}
|
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"):
|
if request.headers.get("Authorization"):
|
||||||
return {"error": f"@{author.username}'s profile is private; You can't use the 'author' syntax on them"}
|
return {"error": f"@{author.username}'s profile is private; You can't use the 'author' syntax on them"}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" 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="100%" 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">
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
</marquee>
|
</marquee>
|
||||||
</marquee>
|
</marquee>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue