mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
Merge pull request #902 from pixelfed/frontend-ui-refactor
Update SearchController
This commit is contained in:
commit
25153397cd
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class SearchController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$hashtags = Hashtag::select('id', 'name', 'slug')->where('slug', 'like', '%'.$tag.'%')->limit(20)->get();
|
$hashtags = Hashtag::select('id', 'name', 'slug')->where('slug', 'like', '%'.$tag.'%')->whereHas('posts')->limit(20)->get();
|
||||||
if($hashtags->count() > 0) {
|
if($hashtags->count() > 0) {
|
||||||
$tags = $hashtags->map(function ($item, $key) {
|
$tags = $hashtags->map(function ($item, $key) {
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in a new issue