fix ambiguous nsfw condition
This commit is contained in:
parent
a2e9b8142e
commit
12ec6e1df4
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class ClaimsController extends AppController {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nsfw !== 'true') {
|
if ($nsfw !== 'true') {
|
||||||
$conditions['IsNSFW <>'] = 1;
|
$conditions['Claims.IsNSFW <>'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$claims = $this->Claims->find()->contain(['Stream', 'Publisher' => ['fields' => ['Name']]])->distinct(['Claims.ClaimId'])->where($conditions)->
|
$claims = $this->Claims->find()->contain(['Stream', 'Publisher' => ['fields' => ['Name']]])->distinct(['Claims.ClaimId'])->where($conditions)->
|
||||||
|
|
Loading…
Reference in a new issue