This commit is contained in:
Aevann1 2022-03-05 01:49:38 +02:00
parent 8d8f81db98
commit 89e8c8a340
4 changed files with 22 additions and 22 deletions

View file

@ -1482,7 +1482,7 @@ def api_pin_post(post_id, v):
@auth_required
def get_post_title(v):
url = request.values.get("url", None)
url = request.values.get("url")
if not url: abort(400)
try: x = requests.get(url, headers=titleheaders, timeout=5)