Fix job dispatching
This commit is contained in:
parent
e482c0df9e
commit
7f9a73360c
8 changed files with 18 additions and 39 deletions
|
@ -7,12 +7,9 @@ use App\Place;
|
|||
use Illuminate\Http\Request;
|
||||
use App\Jobs\SendWebMentions;
|
||||
use App\Jobs\SyndicateToTwitter;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
|
||||
class NoteService
|
||||
{
|
||||
use DispatchesJobs;
|
||||
|
||||
/**
|
||||
* Create a new note.
|
||||
*
|
||||
|
@ -57,7 +54,7 @@ class NoteService
|
|||
}
|
||||
}
|
||||
|
||||
$this->dispatch(new SendWebMentions($note));
|
||||
dispatch(new SendWebMentions($note));
|
||||
|
||||
if (//micropub request, syndication sent as array
|
||||
(is_array($request->input('syndicate-to'))
|
||||
|
@ -68,7 +65,7 @@ class NoteService
|
|||
|| //local admin cp request
|
||||
($request->input('twitter') == true))
|
||||
) {
|
||||
$this->dispatch(new SyndicateToTwitter($note));
|
||||
dispatch(new SyndicateToTwitter($note));
|
||||
}
|
||||
|
||||
return $note;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue