forked from indymedia/epicyon
Bad variable reuse
parent
092bc00d1e
commit
94b4529cf6
4
inbox.py
4
inbox.py
|
@ -1744,8 +1744,8 @@ def likeNotify(baseDir: str, domain: str, onionDomain: str,
|
|||
# was there a previous like notification?
|
||||
if os.path.isfile(prevLikeFile):
|
||||
# is it the same as the current notification ?
|
||||
with open(prevLikeFile, 'r') as likeFile:
|
||||
prevLikeStr = likeFile.read()
|
||||
with open(prevLikeFile, 'r') as fp:
|
||||
prevLikeStr = fp.read()
|
||||
if prevLikeStr == likeStr:
|
||||
return
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue