Use lower case

main
Bob Mottram 2020-07-14 21:55:47 +01:00
parent eceb815cab
commit 838541a0da
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ def isFollowingActor(baseDir: str,
followingFile = baseDir + '/accounts/' + handle + '/following.txt' followingFile = baseDir + '/accounts/' + handle + '/following.txt'
if not os.path.isfile(followingFile): if not os.path.isfile(followingFile):
return False return False
if actor in open(followingFile).read(): if actor.lower() in open(followingFile).read().lower():
return True return True
followingNickname = getNicknameFromActor(actor) followingNickname = getNicknameFromActor(actor)
if not followingNickname: if not followingNickname:
@ -106,7 +106,7 @@ def isFollowingActor(baseDir: str,
if followingPort != 80 and followingPort != 443: if followingPort != 80 and followingPort != 443:
if ':' not in followingHandle: if ':' not in followingHandle:
followingHandle += ':' + str(followingPort) followingHandle += ':' + str(followingPort)
if followingHandle in open(followingFile).read(): if followingHandle.lower() in open(followingFile).read().lower():
return True return True
return False return False