mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update DiscoverController, limit Loops to local only posts
This commit is contained in:
parent
007f27bf58
commit
c19fe3cde8
1 changed files with 2 additions and 1 deletions
|
@ -78,8 +78,9 @@ class DiscoverController extends Controller
|
|||
abort_if(!config('exp.loops'), 403);
|
||||
|
||||
// todo proper pagination, maybe LoopService
|
||||
$res = Cache::remember('discover:loops:recent', now()->addHours(1), function() {
|
||||
$res = Cache::remember('discover:loops:recent', now()->addHours(6), function() {
|
||||
$loops = Status::whereType('video')
|
||||
->whereNull('uri')
|
||||
->whereScope('public')
|
||||
->latest()
|
||||
->take(18)
|
||||
|
|
Loading…
Reference in a new issue