Merge pull request #285 from shikorism/fix/hide-private-like-in-like-users
いいね非公開のユーザーが、チェックイン画面のいいね件数欄に露出してしまう不具合の修正
This commit is contained in:
commit
c42a3d2657
@ -56,6 +56,7 @@ class Ejaculation extends Model
|
||||
},
|
||||
'likes.user' => function ($query) {
|
||||
$query->where('is_protected', false)
|
||||
->where('private_likes', false)
|
||||
->orWhere('id', Auth::id());
|
||||
}
|
||||
])
|
||||
@ -72,7 +73,8 @@ class Ejaculation extends Model
|
||||
$query->latest()->take(10);
|
||||
},
|
||||
'likes.user' => function ($query) {
|
||||
$query->where('is_protected', false);
|
||||
$query->where('is_protected', false)
|
||||
->where('private_likes', false);
|
||||
}
|
||||
])
|
||||
->withCount('likes')
|
||||
|
Loading…
Reference in New Issue
Block a user