fix repost-checking for search URLs

master
Aevann1 2022-06-29 03:50:55 +02:00
parent bee182530d
commit 0710ea02ac
1 changed files with 1 additions and 1 deletions

View File

@ -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,