forked from indymedia/epicyon
Chack for users path
parent
9b3140aa1a
commit
8e8dda6370
13
daemon.py
13
daemon.py
|
@ -2577,7 +2577,16 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# are we already following the searched for handle?
|
# are we already following the searched for handle?
|
||||||
if isFollowingActor(baseDir, nickname, domain,
|
if isFollowingActor(baseDir, nickname, domain,
|
||||||
searchStr):
|
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 = \
|
avatarUrl = \
|
||||||
getAvatarImageUrl(self.server.session,
|
getAvatarImageUrl(self.server.session,
|
||||||
baseDir, httpPrefix,
|
baseDir, httpPrefix,
|
||||||
|
@ -2588,7 +2597,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'?options=' + actor + ';1;' + \
|
'?options=' + actor + ';1;' + \
|
||||||
'/avatars/' + avatarUrl.replace('/', '-')
|
'/avatars/' + avatarUrl.replace('/', '-')
|
||||||
print('profilePathStr: ' + profilePathStr)
|
print('profilePathStr: ' + profilePathStr)
|
||||||
|
|
||||||
self._showPersonOptions(callingDomain, profilePathStr,
|
self._showPersonOptions(callingDomain, profilePathStr,
|
||||||
baseDir, httpPrefix,
|
baseDir, httpPrefix,
|
||||||
domain, domainFull,
|
domain, domainFull,
|
||||||
|
|
Loading…
Reference in New Issue