2023-06-11 21:24:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Friendica\Core\Logger;
|
|
|
|
|
|
|
|
function bluesky_notifications_run($argv, $argc)
|
|
|
|
{
|
|
|
|
require_once 'addon/bluesky/bluesky.php';
|
|
|
|
|
2024-09-29 20:19:38 +02:00
|
|
|
if ($argc < 2) {
|
2023-06-11 21:24:44 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2024-09-29 20:19:38 +02:00
|
|
|
Logger::notice('importing notifications - start', ['user' => $argv[1]]);
|
|
|
|
bluesky_fetch_notifications($argv[1]);
|
|
|
|
Logger::notice('importing notifications - done', ['user' => $argv[1]]);
|
2023-06-11 21:24:44 +02:00
|
|
|
}
|