[COMPONENT][Search] Add support for searching in notes' contents

This commit is contained in:
Hugo Sales 2021-12-16 10:39:36 +00:00
parent 060c3f01a6
commit a16d31b70e
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -165,6 +165,8 @@ class Search extends Component
$actor_expr[] = $eb->neq('actor.type', $type);
}
}
} elseif (!str_contains($term, ':')) {
$note_expr = $eb->contains('note.rendered', $term);
}
return Event::next;
}