diff --git a/files/helpers/const.py b/files/helpers/const.py index 560db3530..b461328b5 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -154,7 +154,6 @@ FEATURES = { 'MARKUP_COMMANDS': True, 'REPOST_DETECTION': True, 'PATRON_ICONS': False, - 'ORDER': False } EMOJI_MARSEYS = True @@ -218,7 +217,6 @@ GIFT_NOTIF_ID = 5 if SITE == 'rdrama.net': FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True - FEATURES['ORDER'] = True SIDEBAR_THREAD = 37696 BANNER_THREAD = 37697 @@ -318,7 +316,6 @@ elif SITE == 'watchpeopledie.co': else: # localhost or testing environment implied FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True - FEATURES['ORDER'] = True bots = {AUTOJANNY_ID, SNAPPY_ID, LONGPOSTBOT_ID, ZOZBOT_ID, BASEDBOT_ID} diff --git a/files/routes/static.py b/files/routes/static.py index baa70e4a8..adbe0e6fb 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -193,37 +193,6 @@ def static_megathread_index(v): def api(v): return render_template("api.html", v=v) - -@app.get("/order") -@auth_desired -def order(v): - if not FEATURES['ORDER']: abort(404) - if v: return redirect("/") - return render_template("order.html", v=v) - -@app.post("/order") -@limiter.limit("1/hour;2/day") -def submit_order(): - if not FEATURES['ORDER']: abort(404) - - body = request.values.get("message") - if not body: abort(400) - - body = 'This message has been sent automatically to all admins via [/order](/order)\n\nMessage:\n\n' + body - body = body.strip() - body_html = sanitize(body) - new_comment = Comment(author_id=AUTOJANNY_ID, parent_submission=None, level=1, body_html=body_html, sentto=2) - g.db.add(new_comment) - g.db.flush() - - new_comment.top_comment_id = new_comment.id - - for admin in g.db.query(User).filter(User.admin_level > 2, User.id != AEVANN_ID).all(): - notif = Notification(comment_id=new_comment.id, user_id=admin.id) - g.db.add(notif) - - return {"success": True} - @app.get("/contact") @app.get("/contactus") @app.get("/contact_us") diff --git a/files/templates/header.html b/files/templates/header.html index 63d53b782..2dbf48aee 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -259,11 +259,6 @@ {% else %} - {% if FEATURES['ORDER'] %} - - {% endif %} @@ -332,11 +327,6 @@ Log out {% else %} - {% if FEATURES['ORDER'] %} - - {% endif %} diff --git a/files/templates/order.html b/files/templates/order.html deleted file mode 100644 index f4fcd6a3b..000000000 --- a/files/templates/order.html +++ /dev/null @@ -1,218 +0,0 @@ -{% extends "default.html" %} - -{% block content %} - - -
-

-
Request a quote -
-

- - -
- -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- - -
- - -
- - -
- - -
- - -
We respect your privacy. Learn - more.
-
- - - -
- -
-
-

Order Received

-

We will get back to you as quickly as possible with a quote.

-
-
- - - - - - -{% endblock %} \ No newline at end of file