From 2fe4d20187ee13b056c4511c56be077cb046aa2b Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 6 Jan 2025 22:40:15 +0100 Subject: [PATCH] fix: adjust default gallery search to new search format --- www/src/db_handler/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' + ] ]; }