aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2023-01-18 20:43:57 +0000
committerAnthony Wang2023-01-18 20:43:57 +0000
commit4fbf68e7003cfe34f45ffe214db340ff7d090b4b (patch)
tree76071e3733af7c85c65169f0e0e74f4582043d8d
parentf054570ee25fdd33cdd4770939c1c47c73ac9ddf (diff)
Fix bug in impersonation check
-rw-r--r--server.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/server.py b/server.py
index c76b0e7..a0f2395 100644
--- a/server.py
+++ b/server.py
@@ -88,7 +88,6 @@ class fuwuqi(SimpleHTTPRequestHandler):
actor = keyid.removesuffix('#main-key')
if ('actor' in activity and activity['actor'] != actor) or \
('attributedTo' in activity and activity['attributedTo'] != actor) or \
- ('actor' in activity['object'] and activity['object']['actor'] != actor) or \
('attributedTo' in activity['object'] and activity['object']['attributedTo'] != actor):
self.send_response(401)
return