2023-06-11 19:24:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Friendica\Core\Logger;
|
|
|
|
|
|
|
|
function bluesky_timeline_run($argv, $argc)
|
|
|
|
{
|
|
|
|
require_once 'addon/bluesky/bluesky.php';
|
|
|
|
|
2023-12-20 20:46:24 +00:00
|
|
|
if ($argc != 3) {
|
2023-06-11 19:24:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-12-20 20:46:24 +00:00
|
|
|
Logger::notice('importing timeline - start', ['user' => $argv[1], 'last_poll' => $argv[2]]);
|
|
|
|
bluesky_fetch_timeline($argv[1], $argv[2]);
|
|
|
|
Logger::notice('importing timeline - done', ['user' => $argv[1], 'last_poll' => $argv[2]]);
|
2023-06-11 19:24:44 +00:00
|
|
|
}
|