diff --git a/files/routes/posts.py b/files/routes/posts.py index 4c7e1b7b3..ad9bfe4ae 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 d7f312bd0..34baa9747 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 ea9188f2f..ee2c16f20 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" %}