Getting group actor

main
Bob Mottram 2021-09-12 20:48:05 +01:00
parent 654c3b861b
commit d51c77f2fa
1 changed files with 6 additions and 0 deletions

View File

@ -1333,6 +1333,10 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
if debug:
print(originalActor + ' is an instance actor')
personUrl = originalActor
elif '://' in originalActor and '/c/' in originalActor:
if debug:
print(originalActor + ' is a group actor')
personUrl = originalActor
else:
handle = nickname + '@' + domain
wfRequest = webfingerHandle(session, handle,
@ -1379,6 +1383,8 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
headersList = (
"ld+json", "jrd+json", "activity+json"
)
if debug:
print('Trying single user instance ' + personUrl)
if '/channel/' in personUrl or '/accounts/' in personUrl:
headersList = (
"ld+json", "jrd+json", "activity+json"