2023-06-11 19:24:44 +00:00
|
|
|
<?php
|
|
|
|
|
2025-01-24 11:36:23 +00:00
|
|
|
use Friendica\DI;
|
2023-06-11 19:24:44 +00:00
|
|
|
|
|
|
|
function bluesky_feed_run($argv, $argc)
|
|
|
|
{
|
|
|
|
require_once 'addon/bluesky/bluesky.php';
|
|
|
|
|
2024-09-29 18:19:38 +00:00
|
|
|
if ($argc < 3) {
|
2023-06-11 19:24:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2025-01-24 11:36:23 +00:00
|
|
|
DI::logger()->debug('Importing feed - start', ['user' => $argv[1], 'feed' => $argv[2]]);
|
2024-09-29 18:19:38 +00:00
|
|
|
bluesky_fetch_feed($argv[1], $argv[2]);
|
2025-01-24 11:36:23 +00:00
|
|
|
DI::logger()->debug('Importing feed - done', ['user' => $argv[1], 'feed' => $argv[2]]);
|
2023-06-11 19:24:44 +00:00
|
|
|
}
|