testicles

This commit is contained in:
Aevann1 2022-03-04 22:42:28 +02:00
parent 2b9b9494f3
commit 1067a0d476
6 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

View file

@ -104,7 +104,7 @@ function loadEmojis(form) {
} }
} }
} }
else else if (key != "marseyalphabet")
{ {
for (const e of value) { for (const e of value) {
if (e.match(search_bar.value.toLowerCase()) || search_bar.value.toLowerCase().match(e)) { if (e.match(search_bar.value.toLowerCase()) || search_bar.value.toLowerCase().match(e)) {

View file

@ -274,7 +274,7 @@ def api_comment(v):
return {"error": "Invalid name!"}, 403 return {"error": "Invalid name!"}, 403
if "author" in marsey: author_id = get_user(marsey["author"]).id if "author" in marsey: author_id = get_user(marsey["author"]).id
elif "author_id" in marsey: author_id = marsey["author_id"] elif "author_id" in marsey: author_id = int(marsey["author_id"])
else: abort(400) else: abort(400)
existing = g.db.query(Marsey.name).filter_by(name=name).one_or_none() existing = g.db.query(Marsey.name).filter_by(name=name).one_or_none()

View file

@ -131,13 +131,13 @@ def notifications(v):
) )
@app.get("/") @app.get("/", subdomain="<subdomain>")
@app.get("/logged_out") @app.get("/logged_out", subdomain="<subdomain>")
@app.get("/s/<sub>") @app.get("/s/<sub>", subdomain="<subdomain>")
@app.get("/logged_out/s/<sub>") @app.get("/logged_out/s/<sub>", subdomain="<subdomain>")
@limiter.limit("3/second;30/minute;1000/hour;5000/day") @limiter.limit("3/second;30/minute;1000/hour;5000/day")
@auth_desired @auth_desired
def front_all(v, sub=None): def front_all(v, sub=None, subdomain=None):
if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none() if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
if request.path.startswith('/s/') and not sub: abort(404) if request.path.startswith('/s/') and not sub: abort(404)

View file

@ -94,4 +94,4 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/emoji_modal.js?v=256"></script> <script src="/static/assets/js/emoji_modal.js?v=257"></script>