[COMPONENT][Search] Add facility for supporting searching for note types

This commit is contained in:
Hugo Sales 2021-12-11 19:33:30 +00:00
parent d667c3a453
commit 01470ee664
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -82,9 +82,15 @@ abstract class Parser
throw new ServerException("No one claimed responsibility for a match term: {$term}");
}
if (!\is_null($note_res)) {
if (\is_array($note_res)) {
$note_res = $eb->orX(...$note_res);
}
$note_parts[] = $note_res;
}
if (!\is_null($actor_res)) {
if (\is_array($actor_res)) {
$actor_res = $ex->orX(...$actor_res);
}
$actor_parts[] = $actor_res;
}