mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update AP helpers
This commit is contained in:
parent
d90b085906
commit
240e36ed45
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue