非公開チェックインのいいねが他人に見えてしまっていた不具合の修正
This commit is contained in:
parent
51485a8ac1
commit
d02b65e4ed
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user