mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update AP Helper
This commit is contained in:
parent
155e960f54
commit
28cbadf197
1 changed files with 3 additions and 3 deletions
|
@ -285,10 +285,10 @@ class Helpers {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!self::validateUrl($res['id']) ||
|
if(!self::validateUrl($activity['object']['id']) ||
|
||||||
!self::validateUrl($activity['object']['attributedTo'])
|
!self::validateUrl($activity['object']['attributedTo'])
|
||||||
) {
|
) {
|
||||||
abort(400, 'Invalid object url');
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$idDomain = parse_url($res['id'], PHP_URL_HOST);
|
$idDomain = parse_url($res['id'], PHP_URL_HOST);
|
||||||
|
@ -300,7 +300,7 @@ class Helpers {
|
||||||
$actorDomain !== $urlDomain ||
|
$actorDomain !== $urlDomain ||
|
||||||
$idDomain !== $actorDomain
|
$idDomain !== $actorDomain
|
||||||
) {
|
) {
|
||||||
abort(400, 'Invalid object');
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile = self::profileFirstOrNew($activity['object']['attributedTo']);
|
$profile = self::profileFirstOrNew($activity['object']['attributedTo']);
|
||||||
|
|
Loading…
Reference in a new issue