From 0710ea02acf14c45080725ed342b3076e5e1b87a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 29 Jun 2022 03:50:55 +0200 Subject: [PATCH] fix repost-checking for search URLs --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index ab8ebecf1..eb76ba93e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -671,7 +671,7 @@ def api_is_repost(): parsed_url = urlparse(url) domain = parsed_url.netloc - if domain in ('old.reddit.com','twitter.com','instagram.com','tiktok.com'): + if domain in ('old.reddit.com','twitter.com','instagram.com','tiktok.com') and '/search' not in url: new_url = ParseResult(scheme="https", netloc=parsed_url.netloc, path=parsed_url.path,