From 59380ed2ac20357f4e3fe7924d716071b45ca34b Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 21 Feb 2022 04:48:18 +0000 Subject: [PATCH] [COMPONENT][Collection] If invalid term, just perform a regular search for it --- components/Collection/Util/Parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Collection/Util/Parser.php b/components/Collection/Util/Parser.php index 95724a3c11..a53d6a4107 100644 --- a/components/Collection/Util/Parser.php +++ b/components/Collection/Util/Parser.php @@ -80,7 +80,8 @@ abstract class Parser $actor_res = null; Event::handle('CollectionQueryCreateExpression', [$eb, $term, $locale, $actor, &$note_res, &$actor_res]); if (\is_null($note_res) && \is_null($actor_res)) { // @phpstan-ignore-line - throw new ServerException("No one claimed responsibility for a match term: {$term}"); + //throw new ServerException("No one claimed responsibility for a match term: {$term}"); + // It's okay if the term doesn't exist, just perform a regular search } if (!empty($note_res)) { // @phpstan-ignore-line if (\is_array($note_res)) {