diff --git a/drama/routes/front.py b/drama/routes/front.py index 58203cc27f..78e1c2ec98 100644 --- a/drama/routes/front.py +++ b/drama/routes/front.py @@ -41,6 +41,7 @@ def notifications(v): c._is_blocked = False c._is_blocking = False if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id: + pass while c.parent_comment: parent = c.parent_comment if c not in parent.replies2: @@ -53,6 +54,7 @@ def notifications(v): elif c.parent_submission and c not in listing: listing.append(c) else: + pass if c.parent_comment: while c.level > 1: c = c.parent_comment diff --git a/drama/routes/login.py b/drama/routes/login.py index 641a19bb26..5fff1b2bf0 100644 --- a/drama/routes/login.py +++ b/drama/routes/login.py @@ -224,12 +224,6 @@ def sign_up_post(v): if not agent: abort(403) - # check tor - # if request.headers.get("CF-IPCountry")=="T1": - # return render_template("sign_up_tor.html", - # i=random_image() - # ) - form_timestamp = request.form.get("now", '0') form_formkey = request.form.get("formkey", "none") diff --git a/drama/templates/admin/cache.html b/drama/templates/admin/cache.html deleted file mode 100644 index 5d98226325..0000000000 --- a/drama/templates/admin/cache.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "default.html" %} - -{% block title %} -
Open this link in a non-Tor browser to accept this invitation.
-You can resume using Tor right away after you sign up.
- {% else %} -Open this link in a non-Tor browser.
-You can resume using Tor right away after you sign up.
- {% endif %} - - -@{{u.username}} left Drama.
-