mirror of https://gitlab.com/bashrc2/epicyon
Getting group actor
parent
654c3b861b
commit
d51c77f2fa
|
@ -1333,6 +1333,10 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
|
||||||
if debug:
|
if debug:
|
||||||
print(originalActor + ' is an instance actor')
|
print(originalActor + ' is an instance actor')
|
||||||
personUrl = originalActor
|
personUrl = originalActor
|
||||||
|
elif '://' in originalActor and '/c/' in originalActor:
|
||||||
|
if debug:
|
||||||
|
print(originalActor + ' is a group actor')
|
||||||
|
personUrl = originalActor
|
||||||
else:
|
else:
|
||||||
handle = nickname + '@' + domain
|
handle = nickname + '@' + domain
|
||||||
wfRequest = webfingerHandle(session, handle,
|
wfRequest = webfingerHandle(session, handle,
|
||||||
|
@ -1379,6 +1383,8 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
|
||||||
headersList = (
|
headersList = (
|
||||||
"ld+json", "jrd+json", "activity+json"
|
"ld+json", "jrd+json", "activity+json"
|
||||||
)
|
)
|
||||||
|
if debug:
|
||||||
|
print('Trying single user instance ' + personUrl)
|
||||||
if '/channel/' in personUrl or '/accounts/' in personUrl:
|
if '/channel/' in personUrl or '/accounts/' in personUrl:
|
||||||
headersList = (
|
headersList = (
|
||||||
"ld+json", "jrd+json", "activity+json"
|
"ld+json", "jrd+json", "activity+json"
|
||||||
|
|
Loading…
Reference in New Issue