Browse Source

Fixup nobot handling

merge-requests/3/head 20170723.2
KemoNine 5 years ago
parent
commit
a1fde4f727
  1. 5
      botstreamlisteners.py

5
botstreamlisteners.py

@ -214,11 +214,12 @@ CREATE TABLE IF NOT EXISTS follow_cache (
timestamp = status['created_at']
visibility = status['visibility']
# Welcome any user who's posted publicly
# Follow any user who's posted publicly
if visibility == 'public' and federated \
and instance not in self.bot_config['follow']['blacklist']['instances'] \
and username not in self.bot_config['follow']['blacklist']['users'] \
and '#nobot' not in status['account']['note'].lower():
and 'nobot' not in status['account']['note'].lower():
# ABOVE CONDITIONAL WARNING: depending on how the formatted bio looks, #nobot may not match!!!!!
# Deal with tag processing
tags_ok = True # Default to tag's ok (assumes tags are not defined in config)

Loading…
Cancel
Save