mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update FetchNodeinfoPipeline, set last_fetched_at timestamp
This commit is contained in:
parent
aa61953a1e
commit
a7fce91e0c
1 changed files with 2 additions and 0 deletions
|
@ -72,10 +72,12 @@ class FetchNodeinfoPipeline implements ShouldQueue, ShouldBeUniqueUntilProcessin
|
||||||
$instance->software = strtolower(strip_tags($software));
|
$instance->software = strtolower(strip_tags($software));
|
||||||
$instance->user_count = Profile::whereDomain($instance->domain)->count();
|
$instance->user_count = Profile::whereDomain($instance->domain)->count();
|
||||||
$instance->nodeinfo_last_fetched = now();
|
$instance->nodeinfo_last_fetched = now();
|
||||||
|
$instance->last_crawled_at = now();
|
||||||
$instance->save();
|
$instance->save();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$instance->delivery_timeout = 1;
|
$instance->delivery_timeout = 1;
|
||||||
|
$instance->last_crawled_at = now();
|
||||||
$instance->delivery_next_after = now()->addHours(14);
|
$instance->delivery_next_after = now()->addHours(14);
|
||||||
$instance->save();
|
$instance->save();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue