Chack for users path

main
Bob Mottram 2020-12-30 12:14:02 +00:00
parent 9b3140aa1a
commit 8e8dda6370
1 changed files with 11 additions and 2 deletions

View File

@ -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,