From 3119e0a33f975b7550530abbc7be95b27bef37e9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Aug 2023 17:16:04 +0100 Subject: [PATCH] pixelfedbot is I assume a legit aspect of pixelfed instances --- crawlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crawlers.py b/crawlers.py index b7629ec12..2f0492445 100644 --- a/crawlers.py +++ b/crawlers.py @@ -130,7 +130,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str, for bot_str in bot_strings: if bot_str in agent_str_lower: if '://bot' not in agent_str_lower and \ - '://robot' not in agent_str_lower: + '://robot' not in agent_str_lower and \ + 'pixelfedbot/' not in agent_str_lower: contains_bot_string = True break if contains_bot_string: