diff --git a/sql/lbryexplorer.ddl.sql b/sql/lbryexplorer.ddl.sql index e0dd9b9..8b9b3fa 100644 --- a/sql/lbryexplorer.ddl.sql +++ b/sql/lbryexplorer.ddl.sql @@ -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, diff --git a/src/Controller/ClaimsController.php b/src/Controller/ClaimsController.php index 4ff6eed..2982c39 100644 --- a/src/Controller/ClaimsController.php +++ b/src/Controller/ClaimsController.php @@ -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) {