Getting actor for group handles

merge-requests/30/head
Bob Mottram 2021-09-12 21:11:24 +01:00
parent f10dcac0b2
commit c5ec736ed8
1 changed files with 2 additions and 0 deletions

View File

@ -1378,6 +1378,8 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
paths = getUserPaths()
for userPath in paths:
personUrl = personUrl.replace(userPath, '/actor/')
if not personUrl and groupAccount:
personUrl = httpPrefix + '://' + domain + '/c/' + nickname
if not personUrl:
# try single user instance
personUrl = httpPrefix + '://' + domain + '/' + nickname