From 0b8acea5aaec3441c00a2ef270b46c0ee263b068 Mon Sep 17 00:00:00 2001 From: thyseus Date: Tue, 8 Nov 2022 08:21:01 +0000 Subject: [PATCH] Fix styling --- src/Http/Livewire/Posts.php | 12 ++++++------ src/Models/PostScope.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Http/Livewire/Posts.php b/src/Http/Livewire/Posts.php index 1ae35ed..cc79364 100644 --- a/src/Http/Livewire/Posts.php +++ b/src/Http/Livewire/Posts.php @@ -49,12 +49,12 @@ public function render() ->twitter(); return view(app('theme') . '.home')->with([ - 'posts' => $posts, - 'pages' => $pages, - 'recent' => $recent, - 'tags' => Tag::withCount('postsPublished')->where('type', 'category')->get(), - 'stickies' => Post::sticky()->published()->get(), - ]) + 'posts' => $posts, + 'pages' => $pages, + 'recent' => $recent, + 'tags' => Tag::withCount('postsPublished')->where('type', 'category')->get(), + 'stickies' => Post::sticky()->published()->get(), + ]) ->layout(config('zeus-sky.layout')); } } diff --git a/src/Models/PostScope.php b/src/Models/PostScope.php index 8fa2395..a7a8dd4 100644 --- a/src/Models/PostScope.php +++ b/src/Models/PostScope.php @@ -17,8 +17,8 @@ public function scopeSticky($query) public function scopeNotSticky($query) { $query->wherePostType('post')->where(function ($q) { - return $q->whereDate('sticky_until', '<=', now())->orWhereNull('sticky_until'); - }) + return $q->whereDate('sticky_until', '<=', now())->orWhereNull('sticky_until'); + }) ->whereDate('published_at', '<=', now()); }