From 2586c013d1fd23820c4d1bbe3e7ab6e573b6c678 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 11 Nov 2021 22:12:27 +0200 Subject: [PATCH] dfdf --- files/routes/posts.py | 2 +- files/templates/comments.html | 20 +++++++----- files/templates/settings_profile.html | 46 +++++++++++++++------------ files/templates/submission.html | 10 +++--- files/templates/submit.html | 23 +++++++------- 5 files changed, 57 insertions(+), 44 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 0e3fba4fa..5e2048c20 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -774,7 +774,7 @@ def submit_post(v): - if (new_post.url or request.files.get('file')) and (v.is_activated or request.headers.get('cf-ipcountry')!="T1"): + if (new_post.url or request.files.get('file')) and request.headers.get('cf-ipcountry')!="T1": gevent.spawn( thumbnail_thread, new_post.id) if not new_post.private: diff --git a/files/templates/comments.html b/files/templates/comments.html index 6d489cc58..d5a1e6c1c 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -378,10 +378,12 @@     - + {% if request.headers.get('cf-ipcountry')!="T1" %} + + {% endif %} Cancel Save Edit @@ -539,10 +541,12 @@   - + {% if request.headers.get('cf-ipcountry')!="T1" %} + + {% endif %} Cancel Comment diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 70a057371..80e0f610d 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -205,16 +205,18 @@
-
+ {% if request.headers.get('cf-ipcountry')!="T1" %} +
-
- - -
+
+ + +
-
+
+ {% endif %} {% if v.profileurl %}
@@ -248,16 +250,18 @@
-
+ {% if request.headers.get('cf-ipcountry')!="T1" %} +
-
- - -
+
+ + +
-
+
+ {% endif %}
@@ -572,10 +576,12 @@     - + {% if request.headers.get('cf-ipcountry')!="T1" %} + + {% endif %}

 										
diff --git a/files/templates/submission.html b/files/templates/submission.html index 753e3dd0d..5fa418277 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -832,10 +832,12 @@ - + {% if request.headers.get('cf-ipcountry')!="T1" %} + + {% endif %} Comment
diff --git a/files/templates/submit.html b/files/templates/submit.html index 3d3006616..e1ad08fe6 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -74,18 +74,19 @@ To post an image, use a direct image link such as i.imgur.com
+ {% if request.headers.get('cf-ipcountry')!="T1" %} +
+
-
-
- - - - Optional if you have text. - You can upload videos up to 1 minute long. -
+ + + Optional if you have text. + You can upload videos up to 1 minute long. +
+ {% endif %}