Remove unneeded processing
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
*/
|
||||
return function ($page) {
|
||||
|
||||
$tag = urldecode(param('tag') ?? '');
|
||||
/**
|
||||
* We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php`
|
||||
*
|
||||
@@ -20,6 +19,7 @@ return function ($page) {
|
||||
*/
|
||||
$notes = collection('notes');
|
||||
|
||||
$tag = param('tag');
|
||||
if (empty($tag) === false) {
|
||||
$notes = $notes->filterBy('tags', $tag, ',');
|
||||
}
|
||||
|
Reference in New Issue
Block a user