mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Bluesky: Tasks are now done by workers
This commit is contained in:
parent
ba1af2b73e
commit
9f0857af1d
4 changed files with 157 additions and 70 deletions
16
bluesky/bluesky_notifications.php
Normal file
16
bluesky/bluesky_notifications.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
|
||||
function bluesky_notifications_run($argv, $argc)
|
||||
{
|
||||
require_once 'addon/bluesky/bluesky.php';
|
||||
|
||||
if ($argc != 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
Logger::notice('importing notifications - start', ['user' => $argv[1]]);
|
||||
bluesky_fetch_notifications($argv[1]);
|
||||
Logger::notice('importing notifications - done', ['user' => $argv[1]]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue