Update network timeline api, limit falloff to 2 days

This commit is contained in:
Daniel Supernault 2022-05-21 01:49:39 -06:00
parent d5225d9197
commit 13a6630351
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 1 deletions

View file

@ -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) : [];

View file

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