Handle html in moveTo

main
Bob Mottram 2021-08-20 14:45:42 +01:00
parent 609811e633
commit dd5dccad46
2 changed files with 6 additions and 0 deletions

View File

@ -6207,6 +6207,8 @@ class PubServer(BaseHTTPRequestHandler):
if actorJson:
if actorJson.get('movedTo'):
movedTo = actorJson['movedTo']
if '"' in movedTo:
movedTo = movedTo.split('"')[1]
lockedAccount = getLockedAccount(actorJson)
donateUrl = getDonationUrl(actorJson)
websiteUrl = getWebsite(actorJson, self.server.translate)

View File

@ -125,6 +125,8 @@ def htmlProfileAfterSearch(cssCache: {},
movedTo = ''
if profileJson.get('movedTo'):
movedTo = profileJson['movedTo']
if '"' in movedTo:
movedTo = movedTo.split('"')[1]
displayName += ''
followsYou = \
@ -702,6 +704,8 @@ def htmlProfile(rssIconAtTop: bool,
movedTo = ''
if profileJson.get('movedTo'):
movedTo = profileJson['movedTo']
if '"' in movedTo:
movedTo = movedTo.split('"')[1]
alsoKnownAs = None
if profileJson.get('alsoKnownAs'):