kopia lustrzana https://github.com/nextcloud/social
there is no use to check twice
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/300/head
rodzic
4894c3bc4d
commit
c9a2adafbb
|
@ -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());
|
||||
|
|
Ładowanie…
Reference in New Issue