From f10dcac0b2e5170a3af06d6aef58c5a83d11e1ca Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 20:53:38 +0100 Subject: [PATCH] More generic --- person.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index dc5b107b7..19d2c7f7c 100644 --- a/person.py +++ b/person.py @@ -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