Browse Source

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

Daniel Supernault 10 months ago
parent
commit
be02f48a77
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/UserAccountDelete.php

+ 2 - 2
app/Console/Commands/UserAccountDelete.php

@@ -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');