[COMPONENT][Collection] Organisation no longer is an actor type but rather a type of Actor Group

This commit is contained in:
Diogo Peralta Cordeiro 2022-02-14 00:41:57 +00:00
parent 10d1a7ed2a
commit 262b14a977
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -104,7 +104,7 @@ class Collection extends Component
if (\in_array($type, ['actor', 'actors'])) {
$type_consts = null;
} else {
$type_consts[] = \constant(Actor::class . '::' . mb_strtoupper($type));
$type_consts[] = \constant(Actor::class . '::' . mb_strtoupper($type === 'organisation' ? 'group' : $type));
}
}
}