Skip to content

Commit b9268da

Browse files
committed
🐛 fix bug sur la spotlight du sujet
1 parent 528db18 commit b9268da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/Spotlight/Sujet.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ public function searchThread($query)
3636
return Thread::where('title', 'like', "%$query%")
3737
->get()
3838
->map(function (Thread $thread) {
39-
// You must map your search result into SpotlightSearchResult objects
4039
return new SpotlightSearchResult(
4140
$thread->slug(),
42-
$thread->name,
41+
$thread->title,
4342
sprintf('par @%s', $thread->author->username)
4443
);
4544
});

0 commit comments

Comments
 (0)