Variable name

merge-requests/8/head
Bob Mottram 2020-12-19 10:51:55 +00:00
parent 083627457e
commit cc01a4187a
1 changed files with 3 additions and 3 deletions

View File

@ -66,9 +66,9 @@ def isFiltered(baseDir: str, nickname: str, domain: str, content: str) -> bool:
if isTwitterPost(content):
return True
globalFiltersFilename = baseDir + '/accounts/filters.txt'
if os.path.isfile(globalFiltersFilename):
if content + '\n' in open(globalFiltersFilename).read():
instanceFiltersFilename = baseDir + '/accounts/filters.txt'
if os.path.isfile(instanceFiltersFilename):
if content + '\n' in open(instanceFiltersFilename).read():
return True
accountFiltersFilename = baseDir + '/accounts/' + \