Fix job dispatching

This commit is contained in:
Jonny Barnes 2016-09-20 13:13:05 +01:00
parent e482c0df9e
commit 7f9a73360c
8 changed files with 18 additions and 39 deletions

View file

@ -38,7 +38,7 @@ class WebMentionsController extends Controller
$numbers = new Numbers();
try {
$note = Note::findOrFail($numbers->b60tonum($noteId));
$this->dispatch(new ProcessWebMention($note, $request->input('source')));
dispatch(new ProcessWebMention($note, $request->input('source')));
} catch (ModelNotFoundException $e) {
return new Response('This note doesnt exist.', 400);
}