From 32f972b2ac74e4fa553ef27ef004c8cce85aad36 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 15 Jan 2024 23:03:17 +0100 Subject: adds support for mastofeed.org to publish automatically to Mastodon --- app/Http/Controllers/IndexController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/Http/Controllers/IndexController.php') diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index 50f2bf4..824a2e2 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -47,6 +47,12 @@ class IndexController extends Controller return view('list', ["articles" => $articles, "count" => $count]); } + public function show( $id ) { + $articles = Article::where('id', $id); + $articles = $articles->simplePaginate(10); + return view('list', ["articles" => $articles, "count" => 1]); + } + public function search(Request $request) { $search_unsafe = $request->input("q"); -- cgit v1.2.3