fix: adjust default gallery search to new search format
This commit is contained in:
parent
7c8d0191d2
commit
2fe4d20187
1 changed files with 4 additions and 2 deletions
|
@ -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'
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue