Skip to content

Commit 42f37bd

Browse files
committed
fix(loader): check specific key is included
1 parent 71fde1b commit 42f37bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apmodel/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,6 @@ def load(data: dict) -> dict | ActivityPubModel:
165165
return load_exact_match(data)
166166

167167
def load_exact_match(data: dict) -> dict | ActivityPubModel:
168-
if set(data.keys()) == {"id", "owner", "publicKeyPem"}:
168+
if {"id", "owner", "publicKeyPem"} <= set(data.keys()):
169169
return CryptographicKey(**data)
170170
return data

0 commit comments

Comments
 (0)