2023-06-11 21:24:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Friendica\Core\Logger;
|
|
|
|
|
|
|
|
function bluesky_feed_run($argv, $argc)
|
|
|
|
{
|
|
|
|
require_once 'addon/bluesky/bluesky.php';
|
|
|
|
|
2023-12-20 21:46:24 +01:00
|
|
|
if ($argc != 4) {
|
2023-06-11 21:24:44 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-12-20 21:46:24 +01:00
|
|
|
Logger::debug('Importing feed - start', ['user' => $argv[1], 'feed' => $argv[2], 'last_poll' => $argv[3]]);
|
|
|
|
bluesky_fetch_feed($argv[1], $argv[2], $argv[3]);
|
|
|
|
Logger::debug('Importing feed - done', ['user' => $argv[1], 'feed' => $argv[2], 'last_poll' => $argv[3]]);
|
2023-06-11 21:24:44 +02:00
|
|
|
}
|