From c19fe3cde8f0bcad78ede2d8740db278f8f9ab16 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 12 Sep 2019 23:53:35 -0600 Subject: [PATCH 1/2] Update DiscoverController, limit Loops to local only posts --- app/Http/Controllers/DiscoverController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index 0024d22de..77d54dbff 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -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) From 95f96aa7eb165953cad0d82966057749fe744eca Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 12 Sep 2019 23:55:08 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c73ea2e83..b67207b5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Updated quill.js to v1.3.7 [#1692](https://github.com/pixelfed/pixelfed/pull/1690) - Cache ProfileController [#1700](https://github.com/pixelfed/pixelfed/pull/1700) - Updated ComposeUI v4, made cropping optional [#1702](https://github.com/pixelfed/pixelfed/pull/1702) +- Updated DiscoverController, limit Loops to local only posts [#1703](https://github.com/pixelfed/pixelfed/pull/1703) ## Deprecated - Remove deprecated profile following/followers [#1697](https://github.com/pixelfed/pixelfed/pull/1697)