From ebea9dd805f4d8424f4bd2e8f29e4ef5b0a756c9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Oct 2019 21:44:16 +0000 Subject: [PATCH] Don't use lower case --- follow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/follow.py b/follow.py index b6973a976..428b71b21 100644 --- a/follow.py +++ b/follow.py @@ -150,8 +150,8 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \ """ if ':' in domain: domain=domain.split(':')[0] - handle=nickname.lower()+'@'+domain.lower() - handleToUnfollow=followNickname.lower()+'@'+followDomain.lower() + handle=nickname+'@'+domain + handleToUnfollow=followNickname+'@'+followDomain if not os.path.isdir(baseDir+'/accounts'): os.mkdir(baseDir+'/accounts') if not os.path.isdir(baseDir+'/accounts/'+handle): @@ -171,6 +171,7 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \ for line in lines: if line.strip("\n") != handleToUnfollow: f.write(line) + return True def unfollowerOfPerson(baseDir: str,nickname: str,domain: str, \ followerNickname: str,followerDomain: str, \