remotes/1693045480750635534/spooky-22
Aevann1 2021-07-24 21:05:22 +02:00
parent db033f915b
commit 04d6a6c738
2 changed files with 2 additions and 7 deletions

View File

@ -96,6 +96,8 @@ def submit_get(v):
b = get_guild("general")
resize()
return render_template("submit.html",
v=v,
b=b
@ -274,8 +276,6 @@ def edit_post(pid, v):
for x in notify_users: send_notification(1046, x, f"@{v.username} has mentioned you: https://rdrama.net{p.permalink}")
resize()
return redirect(p.permalink)
@app.route("/submit/title", methods=['GET'])
@ -1050,8 +1050,6 @@ def submit_post(v):
g.db.add(n)
g.db.commit()
send_message(f"https://rdrama.net{new_post.permalink}")
resize()
return {"html": lambda: redirect(new_post.permalink),
"api": lambda: jsonify(new_post.json)
@ -1077,8 +1075,6 @@ def delete_post_pid(pid, v):
cache.delete_memoized(frontlist)
resize()
return "", 204
@app.route("/undelete_post/<pid>", methods=["POST"])

View File

@ -10,7 +10,6 @@ from drama.mail import *
from flask import *
from drama.__main__ import app, cache, limiter, db_session
from pusher_push_notifications import PushNotifications
from .posts import resize
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()