From a912c482e44d2d9edf972f9cc94664003ba95668 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 8 Sep 2023 23:50:11 +0300 Subject: [PATCH] delete weird shit --- files/routes/posts.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 5637c963d..b43b26f8a 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -271,21 +271,6 @@ def more_comments(v, cid): return render_template("comments.html", v=v, comments=comments, p=p, render_replies=True) -def thumbnail_thread(pid, vid): - db = db_session() - def expand_url(post_url, fragment_url): - if fragment_url.startswith("https://"): - return fragment_url - elif fragment_url.startswith("https://"): - return f"https://{fragment_url.split('https://')[1]}" - elif fragment_url.startswith('//'): - return f"https:{fragment_url}" - elif fragment_url.startswith('/') and '\\' not in fragment_url: - parsed_url = urlparse(post_url) - return f"https://{parsed_url.netloc}{fragment_url}" - else: - return f"{post_url}/{fragment_url}" - def expand_url(post_url, fragment_url): if fragment_url.startswith("https://"): return fragment_url