diff options
author | Anthony Wang | 2023-01-18 06:25:31 +0000 |
---|---|---|
committer | Anthony Wang | 2023-01-18 06:25:31 +0000 |
commit | 5092e30b3c99868ea0d6b90d6e306f6808d2adc3 (patch) | |
tree | 80601da26c0b546ad93ded6ffef80655fcce14b9 /server.py | |
parent | a2e773ebd1a64ac67479ceb05ee3836957ac0e7b (diff) |
Clean up repo
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |