Add path parameters for person options

merge-requests/8/head
Bob Mottram 2020-12-30 11:54:11 +00:00
parent 3b23ae5927
commit 3158c06b18
1 changed files with 11 additions and 1 deletions

View File

@ -117,6 +117,7 @@ from blog import htmlBlogView
from blog import htmlBlogPage
from blog import htmlBlogPost
from blog import htmlEditBlog
from webapp_utils import getAvatarImageUrl
from webapp_utils import htmlHashtagBlocked
from webapp_utils import htmlFollowingList
from webapp_utils import setBlogAddress
@ -2576,7 +2577,16 @@ class PubServer(BaseHTTPRequestHandler):
# are we already following the searched for handle?
if isFollowingActor(baseDir, nickname, domain,
searchStr):
# TODO
actor = searchStr
avatarUrl = \
getAvatarImageUrl(self.server.session,
baseDir, httpPrefix,
actor,
self.server.personCache,
None, True)
profilePathStr = profilePathStr + \
'?options=' + actor + ';1;' + \
'/actors/' + avatarUrl.replace('/', '-')
self._showPersonOptions(callingDomain, profilePathStr,
baseDir, httpPrefix,
domain, domainFull,