mirror of https://gitlab.com/bashrc2/epicyon
Handle html in moveTo
parent
609811e633
commit
dd5dccad46
|
@ -6207,6 +6207,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if actorJson:
|
if actorJson:
|
||||||
if actorJson.get('movedTo'):
|
if actorJson.get('movedTo'):
|
||||||
movedTo = actorJson['movedTo']
|
movedTo = actorJson['movedTo']
|
||||||
|
if '"' in movedTo:
|
||||||
|
movedTo = movedTo.split('"')[1]
|
||||||
lockedAccount = getLockedAccount(actorJson)
|
lockedAccount = getLockedAccount(actorJson)
|
||||||
donateUrl = getDonationUrl(actorJson)
|
donateUrl = getDonationUrl(actorJson)
|
||||||
websiteUrl = getWebsite(actorJson, self.server.translate)
|
websiteUrl = getWebsite(actorJson, self.server.translate)
|
||||||
|
|
|
@ -125,6 +125,8 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
movedTo = ''
|
movedTo = ''
|
||||||
if profileJson.get('movedTo'):
|
if profileJson.get('movedTo'):
|
||||||
movedTo = profileJson['movedTo']
|
movedTo = profileJson['movedTo']
|
||||||
|
if '"' in movedTo:
|
||||||
|
movedTo = movedTo.split('"')[1]
|
||||||
displayName += ' ⌂'
|
displayName += ' ⌂'
|
||||||
|
|
||||||
followsYou = \
|
followsYou = \
|
||||||
|
@ -702,6 +704,8 @@ def htmlProfile(rssIconAtTop: bool,
|
||||||
movedTo = ''
|
movedTo = ''
|
||||||
if profileJson.get('movedTo'):
|
if profileJson.get('movedTo'):
|
||||||
movedTo = profileJson['movedTo']
|
movedTo = profileJson['movedTo']
|
||||||
|
if '"' in movedTo:
|
||||||
|
movedTo = movedTo.split('"')[1]
|
||||||
|
|
||||||
alsoKnownAs = None
|
alsoKnownAs = None
|
||||||
if profileJson.get('alsoKnownAs'):
|
if profileJson.get('alsoKnownAs'):
|
||||||
|
|
Loading…
Reference in New Issue