Remove activity stream functionality from controllers and providers.
- Remove activity stream related code and files - Update configuration for HtmlSanitizer and RetryGuzzle - Add `paginate` macro for `Collection` - Remove unused code for `Codebird` - Simplify `FrontPageController` and `NotesController` methods
This commit is contained in:
parent
e105887e3f
commit
86ac67698e
5 changed files with 0 additions and 136 deletions
|
@ -19,10 +19,6 @@ class FrontPageController extends Controller
|
|||
*/
|
||||
public function index(Request $request): Response|View
|
||||
{
|
||||
if ($request->wantsActivityStream()) {
|
||||
return (new ActivityStreamsService())->siteOwnerResponse();
|
||||
}
|
||||
|
||||
$notes = Note::latest()->with(['media', 'client', 'place'])->get();
|
||||
$articles = Article::latest()->get();
|
||||
$bookmarks = Bookmark::latest()->get();
|
||||
|
|
|
@ -23,10 +23,6 @@ class NotesController extends Controller
|
|||
*/
|
||||
public function index(Request $request): View|Response
|
||||
{
|
||||
if ($request->wantsActivityStream()) {
|
||||
return (new ActivityStreamsService())->siteOwnerResponse();
|
||||
}
|
||||
|
||||
$notes = Note::latest()
|
||||
->with('place', 'media', 'client')
|
||||
->withCount(['webmentions As replies' => function ($query) {
|
||||
|
@ -47,10 +43,6 @@ class NotesController extends Controller
|
|||
abort(404);
|
||||
}
|
||||
|
||||
if (request()->wantsActivityStream()) {
|
||||
return (new ActivityStreamsService())->singleNoteResponse($note);
|
||||
}
|
||||
|
||||
return view('notes.show', compact('note'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue