added IsFiltered flag to identify actual NSFW items that are not tagged NSFW.

This commit is contained in:
Akinwale Ariwodola 2017-06-19 01:32:03 +01:00
parent 12ec6e1df4
commit 20a818c866
2 changed files with 2 additions and 1 deletions

View file

@ -194,6 +194,7 @@ CREATE TABLE `Claims`
`Title` TEXT,
`Fee` DECIMAL(18,8) DEFAULT 0 NOT NULL,
`FeeCurrency` CHAR(3),
`IsFiltered` TINYINT(1) DEFAULT 0 NOT NULL,
`Created` DATETIME NOT NULL,
`Modified` DATETIME NOT NULL,

View file

@ -40,7 +40,7 @@ class ClaimsController extends AppController {
$beforeId = 0;
}
$conditions = ['Claims.ThumbnailUrl IS NOT' => null, 'LENGTH(TRIM(Claims.ThumbnailUrl)) >' => 0];
$conditions = ['Claims.ThumbnailUrl IS NOT' => null, 'LENGTH(TRIM(Claims.ThumbnailUrl)) >' => 0, 'IsFiltered <>' => 1];
if ($afterId > 0) {
$conditions['Claims.Id >'] = $afterId;
} else if ($beforeId) {