mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update DiscoverController, limit trending api to local posts
This commit is contained in:
parent
53322a9378
commit
74ba326adb
1 changed files with 1 additions and 0 deletions
|
@ -192,6 +192,7 @@ class DiscoverController extends Controller
|
||||||
'created_at'
|
'created_at'
|
||||||
)
|
)
|
||||||
->where('id', '>', $min_id)
|
->where('id', '>', $min_id)
|
||||||
|
->whereNull('uri')
|
||||||
->whereScope('public')
|
->whereScope('public')
|
||||||
->whereIn('type', [
|
->whereIn('type', [
|
||||||
'photo',
|
'photo',
|
||||||
|
|
Loading…
Reference in a new issue