Argument order

main
Bob Mottram 2021-10-23 14:43:21 +01:00
parent cd1431b7e0
commit e2e8aeafe7
3 changed files with 5 additions and 5 deletions

View File

@ -3522,7 +3522,7 @@ class PubServer(BaseHTTPRequestHandler):
shareActor = shareActor.split('&')[0]
adminNickname = getConfigParam(baseDir, 'admin')
adminActor = \
localActorUrl(httpPrefix, domainFull, adminNickname)
localActorUrl(httpPrefix, adminNickname, domainFull)
actor = originPathStr
actorNickname = getNicknameFromActor(actor)
if actor == shareActor or actor == adminActor or \
@ -3589,7 +3589,7 @@ class PubServer(BaseHTTPRequestHandler):
shareActor = shareActor.split('&')[0]
adminNickname = getConfigParam(baseDir, 'admin')
adminActor = \
localActorUrl(httpPrefix, domainFull, adminNickname)
localActorUrl(httpPrefix, adminNickname, domainFull)
actor = originPathStr
actorNickname = getNicknameFromActor(actor)
if actor == shareActor or actor == adminActor or \

View File

@ -172,7 +172,7 @@ def _updateCachedHashtagSwarm(baseDir: str, nickname: str, domain: str,
else:
print('WARN: no modified date for ' + str(lastModified))
if saveSwarm:
actor = localActorUrl(httpPrefix, domainFull, nickname)
actor = localActorUrl(httpPrefix, nickname, domainFull)
newSwarmStr = htmlHashTagSwarm(baseDir, actor, translate)
if newSwarmStr:
try:

View File

@ -1846,7 +1846,7 @@ def createUnlistedPost(baseDir: str,
"""Unlisted post. This has the #Public and followers links inverted.
"""
domainFull = getFullDomain(domain, port)
localActor = localActorUrl(httpPrefix, domainFull, nickname)
localActor = localActorUrl(httpPrefix, nickname, domainFull)
return _createPostBase(baseDir, nickname, domain, port,
localActor + '/followers',
'https://www.w3.org/ns/activitystreams#Public',
@ -1879,7 +1879,7 @@ def createFollowersOnlyPost(baseDir: str,
"""Followers only post
"""
domainFull = getFullDomain(domain, port)
localActor = localActorUrl(httpPrefix, domainFull, nickname)
localActor = localActorUrl(httpPrefix, nickname, domainFull)
return _createPostBase(baseDir, nickname, domain, port,
localActor + '/followers',
None,