diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index f86948122..fe0cf7429 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -673,6 +673,26 @@ HTML; $ok &= preg_match($title, $this->title) === 0; } } + if ($ok && $filter->getIntext() !== null) { + foreach ($filter->getIntext() as $content) { + $ok &= stripos($this->content, $content) !== false; + } + } + if ($ok && $filter->getIntextRegex() !== null) { + foreach ($filter->getIntextRegex() as $content) { + $ok &= preg_match($content, $this->content) === 1; + } + } + if ($ok && $filter->getNotIntext() !== null) { + foreach ($filter->getNotIntext() as $content) { + $ok &= stripos($this->content, $content) === false; + } + } + if ($ok && $filter->getNotIntextRegex() !== null) { + foreach ($filter->getNotIntextRegex() as $content) { + $ok &= preg_match($content, $this->content) === 0; + } + } if ($ok && $filter->getTags() !== null) { foreach ($filter->getTags() as $tag2) { $found = false; |
