From 838541a0da3e11da8ee006f59afe355504d21b6b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 14 Jul 2020 21:55:47 +0100 Subject: [PATCH] Use lower case --- follow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/follow.py b/follow.py index a66cadf10..439d45b2a 100644 --- a/follow.py +++ b/follow.py @@ -94,7 +94,7 @@ def isFollowingActor(baseDir: str, followingFile = baseDir + '/accounts/' + handle + '/following.txt' if not os.path.isfile(followingFile): return False - if actor in open(followingFile).read(): + if actor.lower() in open(followingFile).read().lower(): return True followingNickname = getNicknameFromActor(actor) if not followingNickname: @@ -106,7 +106,7 @@ def isFollowingActor(baseDir: str, if followingPort != 80 and followingPort != 443: if ':' not in followingHandle: followingHandle += ':' + str(followingPort) - if followingHandle in open(followingFile).read(): + if followingHandle.lower() in open(followingFile).read().lower(): return True return False