aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index ad480f3e6..3caa1ddb9 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -672,8 +672,7 @@ HTML;
return;
}
if (!$this->isRead()) {
- if ($feed->attributeBoolean('read_upon_reception') ||
- ($feed->attributeBoolean('read_upon_reception') === null && FreshRSS_Context::userConf()->mark_when['reception'])) {
+ if ($feed->attributeBoolean('read_upon_reception') ?? FreshRSS_Context::userConf()->mark_when['reception']) {
$this->_isRead(true);
Minz_ExtensionManager::callHook('entry_auto_read', $this, 'upon_reception');
}