From 0472fe6e0c4b28fbbb5e237a94ce8775a7fc6f37 Mon Sep 17 00:00:00 2001 From: Timothy Quilling Date: Fri, 30 Jun 2023 01:34:30 -0400 Subject: [PATCH] fix: match pixelfed profile last --- find_posts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/find_posts.py b/find_posts.py index ac0b318..4dd7381 100644 --- a/find_posts.py +++ b/find_posts.py @@ -469,11 +469,12 @@ def parse_user_url(url): if match is not None: return match - match = parse_pixelfed_profile_url(url) + match = parse_lemmy_profile_url(url) if match is not None: return match - match = parse_lemmy_profile_url(url) +# Pixelfed profile paths do not use a subdirectory, so we need to match for them last. + match = parse_pixelfed_profile_url(url) if match is not None: return match @@ -493,12 +494,12 @@ def parse_url(url, parsed_urls): parsed_urls[url] = match if url not in parsed_urls: - match = parse_pixelfed_url(url) + match = parse_lemmy_url(url) if match is not None: parsed_urls[url] = match if url not in parsed_urls: - match = parse_lemmy_url(url) + match = parse_pixelfed_url(url) if match is not None: parsed_urls[url] = match