diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 2cc46d2b7..570d216ab 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -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'); }