X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FLDSignature.php;h=9762b837f3bca737269d4ca87f78d95d5f45f855;hb=5accf11c8d5ca529e80d70999e759f63747e3733;hp=c9fde441fdcfcbcb4e80bdafff36b02cd163cca3;hpb=d577ab98eb0f28f9f807795f54c87d80ef9c0dc2;p=friendica.git diff --git a/src/Util/LDSignature.php b/src/Util/LDSignature.php index c9fde441fd..9762b837f3 100644 --- a/src/Util/LDSignature.php +++ b/src/Util/LDSignature.php @@ -3,9 +3,6 @@ namespace Friendica\Util; use Friendica\Core\Logger; -use Friendica\Util\JsonLD; -use Friendica\Util\DateTimeFormat; -use Friendica\Protocol\ActivityPub; use Friendica\Model\APContact; /** @@ -27,7 +24,7 @@ class LDSignature } $actor = JsonLD::fetchElement($data, 'actor', 'id'); - if (empty($actor)) { + if (empty($actor) || !is_string($actor)) { return false; }