mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon
commit
a41c7749a0
|
|
@ -75,6 +75,13 @@ def getPetName(baseDir: str, nickname: str, domain: str,
|
|||
for pet in petnamesList:
|
||||
if pet.endswith(' ' + handle):
|
||||
return pet.replace(' ' + handle, '').strip()
|
||||
elif ' ' + handle.lower() + '\n' in petnamesStr.lower():
|
||||
petnamesList = petnamesStr.split('\n')
|
||||
handle = handle.lower()
|
||||
for pet in petnamesList:
|
||||
if pet.lower().endswith(' ' + handle):
|
||||
handle2 = pet.split(' ')[-1]
|
||||
return pet.replace(' ' + handle2, '').strip()
|
||||
return ''
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
|||
if authorized:
|
||||
if originPathStr == '/users/' + nickname:
|
||||
if optionsNickname:
|
||||
handle = optionsNickname + '@' + optionsDomainFull
|
||||
# handle = optionsNickname + '@' + optionsDomainFull
|
||||
petname = getPetName(baseDir, nickname, domain, handle)
|
||||
optionsStr += \
|
||||
' ' + translate['Petname'] + ': \n' + \
|
||||
|
|
|
|||
Loading…
Reference in New Issue