diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 66e554e22..f75c0d704 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -341,12 +341,16 @@ class FreshRSS_Entry extends Minz_Model { return false; } - public function applyFilterActions() { + public function applyFilterActions($titlesAsRead = []) { if ($this->feed != null) { if ($this->feed->attributes('read_upon_reception') || ($this->feed->attributes('read_upon_reception') === null && FreshRSS_Context::$user_conf->mark_when['reception'])) { $this->_isRead(true); } + if (isset($titlesAsRead[$this->title()])) { + Minz_Log::debug('Mark title as read: ' . $this->title()); + $this->_isRead(true); + } foreach ($this->feed->filterActions() as $filterAction) { if ($this->matches($filterAction->booleanSearch())) { foreach ($filterAction->actions() as $action) { |
