Update AP helpers

This commit is contained in:
Daniel Supernault 2025-01-04 01:50:59 -07:00
parent f8c00ae331
commit 92d8df9116
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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');
}