fix ambiguous nsfw condition

This commit is contained in:
Akinwale Ariwodola 2017-06-19 00:43:48 +01:00
parent a2e9b8142e
commit 12ec6e1df4

View file

@ -48,7 +48,7 @@ class ClaimsController extends AppController {
}
if ($nsfw !== 'true') {
$conditions['IsNSFW <>'] = 1;
$conditions['Claims.IsNSFW <>'] = 1;
}
$claims = $this->Claims->find()->contain(['Stream', 'Publisher' => ['fields' => ['Name']]])->distinct(['Claims.ClaimId'])->where($conditions)->