First filter implementation. Needs lots of tests. #102

This commit is contained in:
2017-11-13 17:45:01 -06:00
parent c2413489e5
commit 1e22ebce61
4 changed files with 29 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ class Session(object):
if i["id"] < last_id:
log.error("Ignoring an older tweet... Last id: {0}, tweet id: {1}".format(last_id, i["id"]))
continue
if utils.find_item(i["id"], self.db[name]) == None and utils.is_allowed(i, self.settings["twitter"]["ignored_clients"]) == True:
if utils.find_item(i["id"], self.db[name]) == None and utils.is_allowed(i, self.settings, name) == True:
try: i = self.check_quoted_status(i)
except: pass
i = self.check_long_tweet(i)