diff --git a/files/routes/posts.py b/files/routes/posts.py index eb76cfa5d..16101e55c 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -352,7 +352,6 @@ def get_post_title(v): url = request.values.get("url", None) if not url: return abort(400) - #mimic chrome browser agent headers = {"User-Agent": f"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36"} try: x = requests.get(url, headers=headers, timeout=5) except BaseException: return {"error": "Could not reach page"}, 400 diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index 22a981b75..d114c9186 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -1,4 +1,4 @@ - +