Update UserAccountDelete command, increase sharedInbox ttl from 12h to 14d

This commit is contained in:
Daniel Supernault 2024-09-05 01:29:01 -06:00
parent 58506e390e
commit be02f48a77
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -74,14 +74,14 @@ class UserAccountDelete extends Command
$activity = $fractal->createData($resource)->toArray();
$audience = Instance::whereNotNull(['shared_inbox', 'nodeinfo_last_fetched'])
->where('nodeinfo_last_fetched', '>', now()->subHours(12))
->where('nodeinfo_last_fetched', '>', now()->subDays(14))
->distinct()
->pluck('shared_inbox');
$payload = json_encode($activity);
$client = new Client([
'timeout' => 10,
'timeout' => 5,
]);
$version = config('pixelfed.version');