mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +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'])
|
||||
) {
|
||||
abort(400, 'Invalid object url');
|
||||
return;
|
||||
}
|
||||
|
||||
$idDomain = parse_url($res['id'], PHP_URL_HOST);
|
||||
|
@ -300,7 +300,7 @@ class Helpers {
|
|||
$actorDomain !== $urlDomain ||
|
||||
$idDomain !== $actorDomain
|
||||
) {
|
||||
abort(400, 'Invalid object');
|
||||
return;
|
||||
}
|
||||
|
||||
$profile = self::profileFirstOrNew($activity['object']['attributedTo']);
|
||||
|
|
Loading…
Reference in a new issue