From 6c69b30870f79618c470d2cf8a0c652b877355f0 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 21 May 2022 15:53:47 +0930 Subject: [PATCH 1/3] Update UserCreate.php --- app/Console/Commands/UserCreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 6bae0cb5..77c17509 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -53,7 +53,7 @@ class UserCreate extends Command $user->email = $o['email']; $user->password = bcrypt($o['password']); $user->is_admin = (bool) $o['is_admin']; - $user->email_verified_at = (bool) $o['confirm_email'] ? now() : null; + $user->email_verified_at = $o['confirm_email'] ? now() : null; $user->save(); $this->info('Successfully created user!'); From 13a663035194e1b1679023b55b0c46fea256e2cf Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 21 May 2022 01:49:39 -0600 Subject: [PATCH 2/3] Update network timeline api, limit falloff to 2 days --- app/Http/Controllers/PublicApiController.php | 2 +- config/federation.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 74bcb671..a32f67ed 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -604,7 +604,7 @@ class PublicApiController extends Controller $max = $request->input('max_id'); $limit = $request->input('limit') ?? 3; $user = $request->user(); - $amin = SnowflakeService::byDate(now()->subDays(490)); + $amin = SnowflakeService::byDate(now()->subDays(config('federation.network_timeline_days_falloff'))); $filtered = $user ? UserFilterService::filters($user->profile_id) : []; diff --git a/config/federation.php b/config/federation.php index d5f6b2d2..91575abd 100644 --- a/config/federation.php +++ b/config/federation.php @@ -45,6 +45,7 @@ return [ ], 'network_timeline' => env('PF_NETWORK_TIMELINE', true), + 'network_timeline_days_falloff' => env('PF_NETWORK_TIMELINE_DAYS_FALLOFF', 2), 'custom_emoji' => [ 'enabled' => env('CUSTOM_EMOJI', false), From eb6db77aa9191d24f6f12f1f1d63b13ca9978c23 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 21 May 2022 01:50:52 -0600 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74116431..ab894d35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Fix mastodon api compatibility ([#3499](https://github.com/pixelfed/pixelfed/pull/3499)) - Add ffmpeg config, disable logging by default ([108e3803](https://github.com/pixelfed/pixelfed/commit/108e3803)) - Refactor AP profileFetch logic to fix race conditions and improve updating fields and avatars ([505261da](https://github.com/pixelfed/pixelfed/commit/505261da)) +- Update network timeline api, limit falloff to 2 days ([13a66303](https://github.com/pixelfed/pixelfed/commit/13a66303)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)