mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update story gc
This commit is contained in:
parent
84382c8aa9
commit
d32d05eed0
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class StoryGC extends Command
|
||||||
protected function archiveExpiredStories()
|
protected function archiveExpiredStories()
|
||||||
{
|
{
|
||||||
$stories = Story::whereActive(true)
|
$stories = Story::whereActive(true)
|
||||||
->where('expires_at', '<', now())
|
->where('created_at', '<', now()->subHours(24))
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
foreach($stories as $story) {
|
foreach($stories as $story) {
|
||||||
|
|
Loading…
Reference in a new issue