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