More generic follow url

main
Bob Mottram 2021-08-14 13:00:32 +01:00
parent 87a7d2e154
commit 1d2ed2bda3
1 changed files with 4 additions and 2 deletions

View File

@ -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 = {