More generic

main
Bob Mottram 2021-09-12 20:53:38 +01:00
parent d51c77f2fa
commit f10dcac0b2
1 changed files with 2 additions and 1 deletions

View File

@ -1328,12 +1328,13 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
personUrl = None
wfRequest = None
if '://' in originalActor and \
originalActor.lower().endswith('/actor'):
if debug:
print(originalActor + ' is an instance actor')
personUrl = originalActor
elif '://' in originalActor and '/c/' in originalActor:
elif '://' in originalActor and groupAccount:
if debug:
print(originalActor + ' is a group actor')
personUrl = originalActor