From eca7f466df0b57529d17230f6fceb8c81d03b441 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 5 Apr 2022 17:04:15 +0200 Subject: [PATCH] fsd --- files/routes/posts.py | 2 +- files/templates/comments.html | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 87425c727..179c458f7 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1469,7 +1469,7 @@ def get_post_title(v): url = request.values.get("url") if not url: abort(400) - try: x = requests.get(url, headers=titleheaders, timeout=5) + try: x = requests.get(url, headers=titleheaders, timeout=5, proxies={"http":"http://127.0.0.1:18080","https":"http://127.0.0.1:18080"} ) except: abort(400) soup = BeautifulSoup(x.content, 'lxml') diff --git a/files/templates/comments.html b/files/templates/comments.html index 043b556bd..1f3c30876 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -920,4 +920,18 @@
{% endif %} +{% if not ajax and v and v.theme != 'transparent' %} + +{% endif %} + \ No newline at end of file