Check if nickname exists

main
bashrc 2026-02-16 12:37:02 +00:00
parent 7d036936dc
commit 5000f8130f
2 changed files with 7 additions and 3 deletions

View File

@ -166,7 +166,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str,
'meta-externalfetcher', 'meta-webindexer', 'aiscraper',
'openai', 'panscient', 'phindbot', 'qualifiedbot', 'quillbot',
'sbIntuitionsbot', 'semrushbot', 'shapbot', 'terracotta',
'velenpublicwebcrawler', 'wpbot', 'yak'
'velenpublicwebcrawler', 'wpbot', 'yak', 'amzn-', 'azureai',
'kagi-fetcher'
)
for bot_str in llm_bot_strings:
if bot_str in agent_str_lower:

View File

@ -88,8 +88,11 @@ def post_to_outbox(self, message_json: {}, version: str,
return False
if not is_online():
print('WARN: ' + post_to_nickname +
' cannot send post because not online')
if post_to_nickname:
print('WARN: ' + post_to_nickname +
' cannot send post because not online')
else:
print('WARN: cannot send post because not online')
return False
city = self.server.city