diff --git a/posts.py b/posts.py index b80ce7f1..8a3a41f9 100644 --- a/posts.py +++ b/posts.py @@ -358,8 +358,8 @@ def savePostToBox(baseDir: str,httpPrefix: str,postId: str, \ if not postId: statusNumber,published = getStatusNumber() - postId=httpPrefix+'://'+originalDomain+'/users/'+nickname+ \ - '/statuses/'+statusNumber + postId=httpPrefix+'://'+originalDomain+'/users/'+ \ + nickname+'/statuses/'+statusNumber postJsonObject['id']=postId+'/activity' if postJsonObject.get('object'): if isinstance(postJsonObject['object'], dict): diff --git a/webinterface.py b/webinterface.py index 467217fc..c146037c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -349,7 +349,7 @@ def htmlProfileFollowing(baseDir: str,httpPrefix: str, \ for item in followingJson['orderedItems']: profileStr+= \ individualFollowAsHtml(session,wfRequest,personCache, \ - domain,item,authorized,buttons) + domain,item,authorized,nickname,buttons) return profileStr def htmlProfileRoles(nickname: str,domain: str,rolesJson: {}) -> str: @@ -543,6 +543,7 @@ def individualFollowAsHtml(session,wfRequest: {}, \ personCache: {},domain: str, \ followUrl: str, \ authorized: bool, \ + actorNickname: str, \ buttons=[]) -> str: nickname=getNicknameFromActor(followUrl) domain,port=getDomainFromActor(followUrl) @@ -560,9 +561,9 @@ def individualFollowAsHtml(session,wfRequest: {}, \ if authorized: for b in buttons: if b=='block': - buttonsStr+='' + buttonsStr+='' if b=='unfollow': - buttonsStr+='' + buttonsStr+='' return \ '