mirror of https://github.com/pixelfed/pixelfed.git
39 lines
766 B
PHP
39 lines
766 B
PHP
<?php
|
|
|
|
namespace App\Jobs\StatusPipeline;
|
|
|
|
use App\{Media, Status};
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
class StatusActivityPubDeliver implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
protected $status;
|
|
/**
|
|
* Create a new job instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Status $status)
|
|
{
|
|
$this->status = $status;
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
$status = $this->status;
|
|
|
|
// todo: fanout on write
|
|
}
|
|
}
|