Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: ensure that Crawler does not run if no internet connection is di…
…sabled

Signed-off-by: Simon L. <[email protected]>
  • Loading branch information
szaimen authored and backportbot[bot] committed Aug 1, 2025
commit aae4696a103d7aba274202170defe92d93c96ad0
4 changes: 4 additions & 0 deletions lib/Cron/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function __construct(string $appName,


protected function run(mixed $argument): void {
if ($this->config->getSystemValueBool('has_internet_connection', true) === false) {
\OC::$server->getLogger()->info('This instance does not have Internet connection to access the Nextcloud feed platform.', ['app' => $this->appName]);
return;
}
try {
$feedBody = $this->loadFeed();
$rss = simplexml_load_string($feedBody);
Expand Down