diff --git a/www/src/db_handler/post.php b/www/src/db_handler/post.php index da6e50e..78935bb 100644 --- a/www/src/db_handler/post.php +++ b/www/src/db_handler/post.php @@ -121,8 +121,10 @@ class Post implements ArrayAccess { if($data['type'] == 'gallery') { $data['search'] ??= [ - '+path:' . $data['path'] . '/*', - '+type:image' + 'path' => $data['path'], + 'tags' => [ + '+type:image' + ] ]; }