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:
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)

View File

@ -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'):