From 8e8dda6370847873b8d860788852353f41b364eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Dec 2020 12:14:02 +0000 Subject: [PATCH] Chack for users path --- daemon.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 7475b29ae..5b37ccb29 100644 --- a/daemon.py +++ b/daemon.py @@ -2577,7 +2577,16 @@ class PubServer(BaseHTTPRequestHandler): # are we already following the searched for handle? if isFollowingActor(baseDir, nickname, domain, searchStr): - actor = searchStr + if not hasUsersPath(searchStr): + searchNickname = getNicknameFromActor(searchStr) + searchDomain, searchPort = \ + getDomainFromActor(searchStr) + actor = \ + httpPrefix + '://' + \ + getFullDomain(searchDomain, searchPort) + \ + '/users/' + searchNickname + else: + actor = searchStr avatarUrl = \ getAvatarImageUrl(self.server.session, baseDir, httpPrefix, @@ -2588,7 +2597,7 @@ class PubServer(BaseHTTPRequestHandler): '?options=' + actor + ';1;' + \ '/avatars/' + avatarUrl.replace('/', '-') print('profilePathStr: ' + profilePathStr) - + self._showPersonOptions(callingDomain, profilePathStr, baseDir, httpPrefix, domain, domainFull,