aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index 86f4872..2c43a46 100644
--- a/server.py
+++ b/server.py
@@ -29,7 +29,7 @@ def iri_to_actor(iri):
actorfile = f'users/{quote_plus(iri)}'
if not isfile(actorfile):
with open(actorfile, 'w') as f:
- resp = get(iri, headers={'Accept': 'application/activity+json'})
+ resp = get(iri.removesuffix('#main-key'), headers={'Accept': 'application/activity+json'})
f.write(resp.text)
with open(actorfile) as f:
return load(f)