Update AP helpers

pull/5424/head
Daniel Supernault 8 months ago
parent f8c00ae331
commit 92d8df9116
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -590,7 +590,9 @@ class Helpers
$id = self::getStatusId($activity, $url);
$url = self::getStatusUrl($activity, $id);
if (! self::validateStatusDomains($originalUrl, $id, $url)) {
if ((! isset($activity['type']) ||
in_array($activity['type'], ['Create', 'Note'])) &&
! self::validateStatusDomains($originalUrl, $id, $url)) {
throw new \Exception('Invalid status domains');
}

Loading…
Cancel
Save