mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-05 07:42:55 +00:00
16 lines
412 B
PHP
16 lines
412 B
PHP
<?php
|
|
|
|
use Friendica\Core\Logger;
|
|
|
|
function bluesky_notifications_run($argv, $argc)
|
|
{
|
|
require_once 'addon/bluesky/bluesky.php';
|
|
|
|
if ($argc != 3) {
|
|
return;
|
|
}
|
|
|
|
Logger::notice('importing notifications - start', ['user' => $argv[1], 'last_poll' => $argv[2]]);
|
|
bluesky_fetch_notifications($argv[1], $argv[2]);
|
|
Logger::notice('importing notifications - done', ['user' => $argv[1], 'last_poll' => $argv[2]]);
|
|
}
|