未来のオカズはお惣菜として出さない

This commit is contained in:
shibafu 2020-05-22 23:53:14 +09:00
parent 15c462449f
commit 77f4bbcfce
2 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ SQL
->where('users.is_protected', false) ->where('users.is_protected', false)
->where('ejaculations.is_private', false) ->where('ejaculations.is_private', false)
->where('ejaculations.link', '<>', '') ->where('ejaculations.link', '<>', '')
->where('ejaculations.ejaculated_date', '<=', Carbon::now())
->orderBy('ejaculations.ejaculated_date', 'desc') ->orderBy('ejaculations.ejaculated_date', 'desc')
->select('ejaculations.*') ->select('ejaculations.*')
->with('user', 'tags') ->with('user', 'tags')

View File

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Ejaculation; use App\Ejaculation;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
class TimelineController extends Controller class TimelineController extends Controller
{ {
@ -13,6 +14,7 @@ class TimelineController extends Controller
->where('users.is_protected', false) ->where('users.is_protected', false)
->where('ejaculations.is_private', false) ->where('ejaculations.is_private', false)
->where('ejaculations.link', '<>', '') ->where('ejaculations.link', '<>', '')
->where('ejaculations.ejaculated_date', '<=', Carbon::now())
->orderBy('ejaculations.ejaculated_date', 'desc') ->orderBy('ejaculations.ejaculated_date', 'desc')
->select('ejaculations.*') ->select('ejaculations.*')
->with('user', 'tags') ->with('user', 'tags')