From 77f4bbcfcecb4d7d98b1465b27a5503f32338d45 Mon Sep 17 00:00:00 2001 From: shibafu Date: Fri, 22 May 2020 23:53:14 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E6=9D=A5=E3=81=AE=E3=82=AA=E3=82=AB?= =?UTF-8?q?=E3=82=BA=E3=81=AF=E3=81=8A=E6=83=A3=E8=8F=9C=E3=81=A8=E3=81=97?= =?UTF-8?q?=E3=81=A6=E5=87=BA=E3=81=95=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/HomeController.php | 1 + app/Http/Controllers/TimelineController.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index f62f8e6..1dbee73 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -66,6 +66,7 @@ SQL ->where('users.is_protected', false) ->where('ejaculations.is_private', false) ->where('ejaculations.link', '<>', '') + ->where('ejaculations.ejaculated_date', '<=', Carbon::now()) ->orderBy('ejaculations.ejaculated_date', 'desc') ->select('ejaculations.*') ->with('user', 'tags') diff --git a/app/Http/Controllers/TimelineController.php b/app/Http/Controllers/TimelineController.php index 2f05b71..db6ad72 100644 --- a/app/Http/Controllers/TimelineController.php +++ b/app/Http/Controllers/TimelineController.php @@ -4,6 +4,7 @@ namespace App\Http\Controllers; use App\Ejaculation; use Illuminate\Http\Request; +use Illuminate\Support\Carbon; class TimelineController extends Controller { @@ -13,6 +14,7 @@ class TimelineController extends Controller ->where('users.is_protected', false) ->where('ejaculations.is_private', false) ->where('ejaculations.link', '<>', '') + ->where('ejaculations.ejaculated_date', '<=', Carbon::now()) ->orderBy('ejaculations.ejaculated_date', 'desc') ->select('ejaculations.*') ->with('user', 'tags')