diff --git a/drama/routes/front.py b/drama/routes/front.py index 58203cc27..78e1c2ec9 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 641a19bb2..5fff1b2bf 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 5d9822632..000000000 --- a/drama/templates/admin/cache.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "default.html" %} - -{% block title %} -Drama - -{% endblock %} - -{% block content %} -

-

-
Cache Dump
-Clear internal cache - - - -{% endblock %} \ No newline at end of file diff --git a/drama/templates/admin/new_users.html b/drama/templates/admin/new_users.html index 429c0704b..10942590e 100644 --- a/drama/templates/admin/new_users.html +++ b/drama/templates/admin/new_users.html @@ -1,4 +1,4 @@ -{% extends "mine/mine.html" %} +{% extends "mine.html" %} {% block maincontent %} diff --git a/drama/templates/control_panel_logged_in.html b/drama/templates/control_panel_logged_in.html deleted file mode 100644 index 1dbd3b861..000000000 --- a/drama/templates/control_panel_logged_in.html +++ /dev/null @@ -1,7 +0,0 @@ -

My Profile

-

Settings

-

Submit

-
- - -
diff --git a/drama/templates/control_panel_logged_out.html b/drama/templates/control_panel_logged_out.html deleted file mode 100644 index 3125dc6ab..000000000 --- a/drama/templates/control_panel_logged_out.html +++ /dev/null @@ -1 +0,0 @@ -

Sign In | Sign Up

diff --git a/drama/templates/developers.html b/drama/templates/developers.html deleted file mode 100644 index 1c50a3a82..000000000 --- a/drama/templates/developers.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "default.html" %} - -{% block title %} -Drama - FAQ - -{% endblock %} - -{% block content %} -{% filter markdown %} - -# Developer Help - -Tips to help ensure your website works nicely with Drama - -## SSL Required - -To help protect user privacy and safety, Drama forces HTTPS on all assets uploaded and submitted to Drama. This includes automatic conversion of all "https://" schemas into "https://". - -Make sure your website has a valid SSL certificate in order to ensure that Drama users can navigate to it from Drama. - -We will not grant exemptions to https conversion. - -## Share to Drama - -To create a "share to Drama" button, create an element which has `onclick="window.location.href='https://rdrama.net/submit?url='+window.location.href"` - -Use [Drama branding and assets](/press) to style your "share to Drama" button. - - -## Thumbnails - -Thumbnail images for posts are determined by using the first successful condition below: - -1. If the submitted link has a `Content-Type: image/*` header, the link itself is used as the thumbnail asset. -2. If the submitted link has a `Content-Type: text/html` header, and there is a `` element, the `content` attribute of that element will be scraped and used as the thumbnail. (Use this option to explicitly set a thumbnail) -3. If the submitted link has a `Content-Type: text/html` header, and no thumbnail meta element is found, the `src` attribute of the first `img` element will be scraped and used as the thumbnail. - -## Applications - -To request drama API keys, visit [this page](/apps) - -{% endfilter %} -{% endblock %} diff --git a/drama/templates/gm_exile_modal.html b/drama/templates/gm_exile_modal.html deleted file mode 100644 index 6f3cfeee6..000000000 --- a/drama/templates/gm_exile_modal.html +++ /dev/null @@ -1,25 +0,0 @@ - - \ No newline at end of file diff --git a/drama/templates/mine/mine.html b/drama/templates/mine.html similarity index 100% rename from drama/templates/mine/mine.html rename to drama/templates/mine.html diff --git a/drama/templates/mine/users.html b/drama/templates/mine/users.html deleted file mode 100644 index 6cba8a7dc..000000000 --- a/drama/templates/mine/users.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "mine/mine.html" %} - -{% block maincontent %} -{% include "user_listing.html" %} -{% endblock %} \ No newline at end of file diff --git a/drama/templates/sign_up_tor.html b/drama/templates/sign_up_tor.html deleted file mode 100644 index 2e3e65ce8..000000000 --- a/drama/templates/sign_up_tor.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% if ref_user %}{{ref_user.username}} invites you to Drama{% else %}Sign up - Drama{% endif %} - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
- -
- -
- drama -
- -
- - {% if ref_user %} -

@{{ref_user.username}} has invited you!

-

Open this link in a non-Tor browser to accept this invitation.

-

You can resume using Tor right away after you sign up.

- {% else %} -

Create your account.

-

Open this link in a non-Tor browser.

-

You can resume using Tor right away after you sign up.

- {% endif %} - - -
- -
- -
- -
- -
- -
- -
- - -
- -
- -
-
- -{% include "bootstrap.html" %} - - - - - - - - diff --git a/drama/templates/userpage_deleted.html b/drama/templates/userpage_deleted.html deleted file mode 100644 index cb9fa3b29..000000000 --- a/drama/templates/userpage_deleted.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "default.html" %} - -{% block pagetype %}userpage{% endblock %} - -{% block fixedMobileBarJS %} - -{% endblock %} - -{% block title %} -{{u.username}} - -{% endblock %} - -{% block content %} - -
-
-
- - - - -

Deactivated Account

-

@{{u.username}} left Drama.

-
-
-
-{% endblock %} - -{% block pagenav %} -{% endblock %}