Update AP helpers

This commit is contained in:
Daniel Supernault 2021-01-30 18:14:04 -07:00
parent d90b085906
commit 240e36ed45
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -326,16 +326,15 @@ class Helpers {
if(isset($activity['object']['attributedTo'])) {
$actorDomain = parse_url($activity['object']['attributedTo'], PHP_URL_HOST);
if(!self::validateUrl($activity['object']['attributedTo']) ||
$idDomain !== $actorDomain)
$idDomain !== $actorDomain ||
$actorDomain !== $urlDomain
)
{
return;
}
}
if(
$idDomain !== $urlDomain ||
$actorDomain !== $urlDomain
) {
if($idDomain !== $urlDomain) {
return;
}