From 3158c06b187fe9c78af5482a96d455769522d146 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Dec 2020 11:54:11 +0000 Subject: [PATCH] Add path parameters for person options --- daemon.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 20cf6cddc..782875d3d 100644 --- a/daemon.py +++ b/daemon.py @@ -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,