aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorAnthony Wang2023-01-18 06:25:31 +0000
committerAnthony Wang2023-01-18 06:25:31 +0000
commit5092e30b3c99868ea0d6b90d6e306f6808d2adc3 (patch)
tree80601da26c0b546ad93ded6ffef80655fcce14b9 /server.py
parenta2e773ebd1a64ac67479ceb05ee3836957ac0e7b (diff)
Clean up repo
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)