From 5890f8fdb185a6aa0b53438fcb25cfc8654d5a92 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 21 Jul 2021 04:05:54 +0200 Subject: [PATCH] sneed --- ruqqus/routes/front.py | 1 - ruqqus/routes/posts.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ruqqus/routes/front.py b/ruqqus/routes/front.py index 0eee59391..f7dd354e6 100644 --- a/ruqqus/routes/front.py +++ b/ruqqus/routes/front.py @@ -179,7 +179,6 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='' @app.route("/api/v1/listing", methods=["GET"]) @auth_desired def front_all(v): - return "Upgrading server, be back in 10 minutes" if v and v.is_banned and not v.unban_utc: return render_template("seized.html") page = int(request.args.get("page") or 1) diff --git a/ruqqus/routes/posts.py b/ruqqus/routes/posts.py index 976f008fb..49fd5f611 100644 --- a/ruqqus/routes/posts.py +++ b/ruqqus/routes/posts.py @@ -375,7 +375,7 @@ def thumbs(new_post): for chunk in image_req.iter_content(1024): file.write(chunk) - post.thumburl = upload_from_file(name, tempname, resize=(375, 227)) + post.thumburl = upload_from_file(name, tempname, resize=(150, 100)) if post.thumburl: post.has_thumb = True g.db.add(post) g.db.commit()