Objects extracted from collections don't have _source_object set.

ld-signatures
Alain St-Denis 2023-03-26 17:32:18 -04:00
rodzic e7d954b788
commit 59d5e99d23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -306,7 +306,8 @@ class Object(BaseEntity, metaclass=JsonLDAnnotation):
def _validate_signatures(self):
# Always verify the inbound LD signature, for monitoring purposes
actor = verify_ld_signature(self._source_object)
if self._source_object: # objects extracted from collections don't have a source object
actor = verify_ld_signature(self._source_object)
if not self._sender:
return
if self.signable and self._sender not in (self.id, getattr(self, 'actor_id', None)):