[PLUGIN][NoteTypeFilter] Always show filtering options

This commit is contained in:
Hugo Sales 2022-01-08 14:26:12 +00:00
parent b1abd81aca
commit 57604b3851
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -141,7 +141,6 @@ class NoteTypeFeedFilter extends Plugin
*/
public function onAddFeedActions(Request $request, bool $is_not_empty, &$res): bool
{
if ($is_not_empty) {
$qs = [];
parse_str($request->getQueryString(), $qs);
if (\array_key_exists('p', $qs) && \is_string($qs['p'])) {
@ -171,7 +170,6 @@ class NoteTypeFeedFilter extends Plugin
}
$res[] = Formatting::twigRenderFile('NoteTypeFeedFilter/tabs.html.twig', ['tabs' => $tabs]);
}
return Event::next;
}