mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-10 06:00:45 +00:00
Update AP helpers
This commit is contained in:
parent
f8c00ae331
commit
92d8df9116
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue