From 126e0ba6fc80612e9c2a562b2cfcc0b213fd0733 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Dec 2021 06:27:09 +0200 Subject: [PATCH] sdffs --- files/routes/posts.py | 20 -------------------- files/templates/CHRISTMAS/submit.html | 4 ++-- files/templates/submit.html | 4 ++-- 3 files changed, 4 insertions(+), 24 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 4c7e1b7b3b..ad9bfe4ae8 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -572,26 +572,6 @@ def edit_post(pid, v): return redirect(p.permalink) -@app.get("/submit/title") -@limiter.limit("6/minute") -@auth_required -def get_post_title(v): - - abort(400) - # url = request.values.get("url", None) - # if not url: abort(400) - - # try: x = requests.get(url, headers=titleheaders, timeout=5) - # except: abort(400) - - # soup = BeautifulSoup(x.content, 'html.parser') - - # title = soup.find('title') - # if not title: abort(400) - - # return {"url": url, "title": title.string} - - def archiveorg(url): try: requests.get(f'https://web.archive.org/save/{url}', headers={'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}, timeout=100) except Exception as e: print(e) diff --git a/files/templates/CHRISTMAS/submit.html b/files/templates/CHRISTMAS/submit.html index d7f312bd0b..34baa97479 100644 --- a/files/templates/CHRISTMAS/submit.html +++ b/files/templates/CHRISTMAS/submit.html @@ -55,7 +55,7 @@
- + To post an image, use a direct image link such as i.imgur.com @@ -167,6 +167,6 @@ {% block scripts %} - + {% endblock %} diff --git a/files/templates/submit.html b/files/templates/submit.html index ea9188f2f5..ee2c16f208 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -71,7 +71,7 @@
- + To post an image, use a direct image link such as i.imgur.com
@@ -177,7 +177,7 @@ - + {% include "emoji_modal.html" %}