forked from indymedia/epicyon
Don't use lower case
parent
6a8c014cba
commit
ebea9dd805
|
@ -150,8 +150,8 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \
|
||||||
"""
|
"""
|
||||||
if ':' in domain:
|
if ':' in domain:
|
||||||
domain=domain.split(':')[0]
|
domain=domain.split(':')[0]
|
||||||
handle=nickname.lower()+'@'+domain.lower()
|
handle=nickname+'@'+domain
|
||||||
handleToUnfollow=followNickname.lower()+'@'+followDomain.lower()
|
handleToUnfollow=followNickname+'@'+followDomain
|
||||||
if not os.path.isdir(baseDir+'/accounts'):
|
if not os.path.isdir(baseDir+'/accounts'):
|
||||||
os.mkdir(baseDir+'/accounts')
|
os.mkdir(baseDir+'/accounts')
|
||||||
if not os.path.isdir(baseDir+'/accounts/'+handle):
|
if not os.path.isdir(baseDir+'/accounts/'+handle):
|
||||||
|
@ -171,6 +171,7 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line.strip("\n") != handleToUnfollow:
|
if line.strip("\n") != handleToUnfollow:
|
||||||
f.write(line)
|
f.write(line)
|
||||||
|
return True
|
||||||
|
|
||||||
def unfollowerOfPerson(baseDir: str,nickname: str,domain: str, \
|
def unfollowerOfPerson(baseDir: str,nickname: str,domain: str, \
|
||||||
followerNickname: str,followerDomain: str, \
|
followerNickname: str,followerDomain: str, \
|
||||||
|
|
Loading…
Reference in New Issue