forked from indymedia/epicyon
Tidying
parent
ac67db1679
commit
08f62aa32c
|
@ -22,7 +22,7 @@ def addGlobalBlock(baseDir: str,
|
||||||
blockingFilename = baseDir + '/accounts/blocking.txt'
|
blockingFilename = baseDir + '/accounts/blocking.txt'
|
||||||
if not blockNickname.startswith('#'):
|
if not blockNickname.startswith('#'):
|
||||||
# is the handle already blocked?
|
# is the handle already blocked?
|
||||||
blockHandle = blockNickname + '@' + blockDomain
|
blockHandle = blockNickname + '@' + blockDomain
|
||||||
if os.path.isfile(blockingFilename):
|
if os.path.isfile(blockingFilename):
|
||||||
if blockHandle in open(blockingFilename).read():
|
if blockHandle in open(blockingFilename).read():
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue