Skip to content

Commit

Permalink
Update UserAccountDelete command, increase sharedInbox ttl from 12h t…
Browse files Browse the repository at this point in the history
…o 14d
  • Loading branch information
dansup committed Sep 5, 2024
1 parent 58506e3 commit be02f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/UserAccountDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ public function handle()
$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');
Expand Down

0 comments on commit be02f48

Please sign in to comment.