From 1d2ed2bda3426524cfbf90c6aacb4d9f0824951f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Aug 2021 13:00:32 +0100 Subject: [PATCH] More generic follow url --- follow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/follow.py b/follow.py index 2295553bb..b81786db3 100644 --- a/follow.py +++ b/follow.py @@ -1040,7 +1040,8 @@ def sendFollowRequestViaServer(baseDir: str, session, followDomainFull = getFullDomain(followDomain, followPort) followActor = localActorUrl(httpPrefix, fromNickname, fromDomainFull) - followedId = localActorUrl(httpPrefix, followNickname, followDomainFull) + followedId = \ + httpPrefix + '://' + followDomainFull + '/@' + followNickname statusNumber, published = getStatusNumber() newFollowJson = { @@ -1124,7 +1125,8 @@ def sendUnfollowRequestViaServer(baseDir: str, session, followDomainFull = getFullDomain(followDomain, followPort) followActor = localActorUrl(httpPrefix, fromNickname, fromDomainFull) - followedId = localActorUrl(httpPrefix, followNickname, followDomainFull) + followedId = \ + httpPrefix + '://' + followDomainFull + '/@' + followNickname statusNumber, published = getStatusNumber() unfollowJson = {