mirror of https://gitlab.com/bashrc2/epicyon
Argument order
parent
cd1431b7e0
commit
e2e8aeafe7
|
@ -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 \
|
||||
|
|
2
inbox.py
2
inbox.py
|
@ -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:
|
||||
|
|
4
posts.py
4
posts.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue