mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update SearchApiV2Service, order hashtag results by cached_count
This commit is contained in:
parent
a6d37e89d2
commit
593de9e34f
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ class SearchApiV2Service
|
||||||
return $q->where('can_search', true)
|
return $q->where('can_search', true)
|
||||||
->orWhereNull('can_search');
|
->orWhereNull('can_search');
|
||||||
})
|
})
|
||||||
|
->orderByDesc('cached_count')
|
||||||
->offset($offset)
|
->offset($offset)
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->get()
|
->get()
|
||||||
|
|
Loading…
Reference in a new issue