Squashed commit of the following:

commit f02ac2b94326054a842a65ed5a2b851351c1d533
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sat Sep 16 18:44:52 2017 +0100

    update changelog

commit 2e77668cae03246189d8ce931f9ab29d2531d522
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sat Sep 16 18:44:45 2017 +0100

    Add a middleware for adding AS2.0 header links

commit 931ba1fe5dd2eacf32e4da3eefec081173dee8de
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sat Sep 16 18:44:16 2017 +0100

    remove references to AS2.0 links
This commit is contained in:
Jonny Barnes 2017-09-16 18:45:06 +01:00
parent 53abe5a42d
commit 309864ba76
5 changed files with 32 additions and 7 deletions

View file

@ -27,9 +27,8 @@ class NotesController extends Controller
->withCount(['webmentions As replies' => function ($query) {
$query->where('type', 'in-reply-to');
}])->paginate(10);
$aslink = config('app.url');
return view('notes.index', compact('notes', 'aslink'));
return view('notes.index', compact('notes'));
}
/**
@ -46,9 +45,7 @@ class NotesController extends Controller
return (new ActivityStreamsService)->singleNoteResponse($note);
}
$aslink = $note->longurl;
return view('notes.show', compact('note', 'aslink'));
return view('notes.show', compact('note'));
}
/**