summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhorus2024-01-16 23:52:39 +0100
committerhorus2024-01-16 23:52:39 +0100
commit2bb1fb114ad47e5063aa72b7d31065531f4db3d4 (patch)
treea8baf0b6ab4cf24498711e0c812de03fac2b904b /app
parent94baf5917979db7e06f779844d1dbab6c2936bcc (diff)
downloadcurious-2bb1fb114ad47e5063aa72b7d31065531f4db3d4.tar.gz
Diffstat (limited to 'app')
-rw-r--r--app/Http/Controllers/IndexController.php6
-rw-r--r--app/Libraries/Helper.php1
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php
index f24d1ad..62bec0e 100644
--- a/app/Http/Controllers/IndexController.php
+++ b/app/Http/Controllers/IndexController.php
@@ -58,7 +58,11 @@ class IndexController extends Controller
public function show( $id ) {
$articles = Article::where('id', $id);
$articles = $articles->simplePaginate(10);
- return view('list', ["articles" => $articles, "count" => 1]);
+ $page_title = "";
+ foreach($articles as $a) {
+ $page_title = $a->title;
+ }
+ return view('list', ["articles" => $articles, "count" => 1, "page_title" => $page_title]);
}
public function search(Request $request) {
diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php
index 026abef..41d26e5 100644
--- a/app/Libraries/Helper.php
+++ b/app/Libraries/Helper.php
@@ -69,6 +69,7 @@ class Helper {
{
$desc = ($post->excerpt_html);
+ $categories = null;
if ( "mastodon" == $title ) {