From 5e7cce97c512be482cccdf08078d4d56c25a3c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 20 Apr 2025 23:58:34 +0200 Subject: [PATCH] Continued: - added 'pawkey' as an alias for 'misskey' - need to ignore unwanted domains before invoking domain_helper.encode_idna() --- fba/commands.py | 3 +++ fba/helpers/software.py | 1 + 2 files changed, 4 insertions(+) diff --git a/fba/commands.py b/fba/commands.py index cc42fc9..23a83bf 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -603,6 +603,9 @@ def fetch_observer(args: argparse.Namespace) -> int: if domain in [None, ""]: logger.debug("domain[%s]='%s' is empty after tidyup.domain(): item[domain]='%s' - SKIPPED!", type(domain), domain, item["domain"]) continue + elif not domain_helper.is_wanted(domain): + logger.debug("domain='%s' is not wanted - SKIPPED!", domain) + continue logger.debug("domain='%s' - BEFORE!", domain) domain = domain_helper.encode_idna(domain) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index d41d09f..6ac19d3 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -85,6 +85,7 @@ _misskey_aliases = [ "yojo-art", "forkey", "lockpick", + "pawkey", ] # Aliases for pleroma -- 2.39.5