From dd5dccad4680693478ba7443b09ad94fb25e8595 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 20 Aug 2021 14:45:42 +0100 Subject: [PATCH] Handle html in moveTo --- daemon.py | 2 ++ webapp_profile.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/daemon.py b/daemon.py index 3cd3036d3..c6e6771bd 100644 --- a/daemon.py +++ b/daemon.py @@ -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) diff --git a/webapp_profile.py b/webapp_profile.py index ddb9be18e..6c94a6803 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -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'):