mirror of
https://git.exozy.me/a/fuwuqi.git
synced 2024-11-21 17:21:20 +00:00
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