1
0
Fork 0
forked from mirror/pixelfed

Update InboxWorker

This commit is contained in:
Daniel Supernault 2018-11-03 21:53:46 -06:00
parent 4ae6cb4307
commit ef10c24d16
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -14,7 +14,7 @@ class InboxWorker implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $request;
protected $headers;
protected $profile;
protected $payload;
@ -23,9 +23,9 @@ class InboxWorker implements ShouldQueue
*
* @return void
*/
public function __construct($request, Profile $profile, $payload)
public function __construct($headers, $profile, $payload)
{
$this->request = $request;
$this->headers = $headers;
$this->profile = $profile;
$this->payload = $payload;
}
@ -37,6 +37,6 @@ class InboxWorker implements ShouldQueue
*/
public function handle()
{
(new Inbox($this->request, $this->profile, $this->payload))->handle();
(new Inbox($this->headers, $this->profile, $this->payload))->handle();
}
}