Update DiscoverController, limit Loops to local only posts

pull/1703/head
Daniel Supernault 2019-09-12 23:53:35 -06:00
rodzic 007f27bf58
commit c19fe3cde8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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)