forked from mirrors/fuwuqi
Fix bug in impersonation check
This commit is contained in:
parent
f054570ee2
commit
4fbf68e700
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue