kopia lustrzana https://github.com/pixelfed/pixelfed
Update story gc
rodzic
84382c8aa9
commit
d32d05eed0
|
@ -51,7 +51,7 @@ class StoryGC extends Command
|
|||
protected function archiveExpiredStories()
|
||||
{
|
||||
$stories = Story::whereActive(true)
|
||||
->where('expires_at', '<', now())
|
||||
->where('created_at', '<', now()->subHours(24))
|
||||
->get();
|
||||
|
||||
foreach($stories as $story) {
|
||||
|
|
Ładowanie…
Reference in New Issue