From 4fbf68e7003cfe34f45ffe214db340ff7d090b4b Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 18 Jan 2023 20:43:57 +0000 Subject: [PATCH] Fix bug in impersonation check --- server.py | 1 - 1 file changed, 1 deletion(-) 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