friendica-addons/bluesky/bluesky_timeline.php

17 lines
331 B
PHP
Raw Permalink Normal View History

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';
if ($argc < 2) {
2023-06-11 19:24:44 +00:00
return;
}
Logger::notice('importing timeline - start', ['user' => $argv[1]]);
bluesky_fetch_timeline($argv[1]);
Logger::notice('importing timeline - done', ['user' => $argv[1]]);
2023-06-11 19:24:44 +00:00
}