there is no use to check twice

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/300/head
Maxence Lange 2019-01-03 15:49:31 -01:00
rodzic 4894c3bc4d
commit c9a2adafbb
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -217,12 +217,12 @@ class SignatureService {
$signature = new LinkedDataSignature();
$signature->import(json_decode($object->getSource(), true));
$signature->setPublicKey($this->retrieveKey($actorId));
if (!$signature->verify()) {
$signature->setPublicKey($this->retrieveKey($actorId, true));
}
if (!$signature->verify()) {
return false;
$signature->setPublicKey($this->retrieveKey($actorId, true));
if (!$signature->verify()) {
return false;
}
}
$dTime = new DateTime($signature->getCreated());