Handle html in moveTo

This commit is contained in:
bashrc committed 2021-08-20 14:45:42 +01:00
1 parent 609811e633
commit dd5dccad46
2 files changed
+6

No files matched your search

+2
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)
+4
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'):