非公開チェックインのいいねが他人に見えてしまっていた不具合の修正

This commit is contained in:
shibafu 2019-04-21 02:12:42 +09:00
parent 51485a8ac1
commit d02b65e4ed

View File

@ -188,6 +188,10 @@ SQL
$likes = $user->likes()
->orderBy('created_at', 'desc')
->with('ejaculation.user', 'ejaculation.tags')
->whereHas('ejaculation', function ($query) {
$query->where('user_id', Auth::id())
->orWhere('is_private', false);
})
->paginate(20);
return view('user.likes')->with(compact('user', 'likes'));