diff options
| author | 2022-07-19 15:17:08 +0200 | |
|---|---|---|
| committer | 2022-07-19 15:17:08 +0200 | |
| commit | 0866fdaee85bc8530437436abe7f8536b8b0f4f0 (patch) | |
| tree | fd73e2e55740423bfab64581c4934b6d50dd3162 /app/Controllers/feedController.php | |
| parent | 2d807e06b1abffdbc40a60c3623e22e3c6b818c6 (diff) | |
Add database field attributes for entries (#4444)
* Add database field attributes for entries
Just like we already have for categories, feeds, etc.
No core use yet, but allows in particular extensions to save per-entry data
* Fix PHPStand
* Fix wrong variable
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 8621cb535..0699844d8 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -426,6 +426,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { //', old hash ' . $existingHash . ', new hash ' . $entry->hash()); $entry->_isRead($mark_updated_article_unread ? false : null); //Change is_read according to policy. + /** @var FreshRSS_Entry|null */ $entry = Minz_ExtensionManager::callHook('entry_before_insert', $entry); if ($entry === null) { // An extension has returned a null value, there is nothing to insert. @@ -454,6 +455,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $titlesAsRead[$entry->title()] = true; } + /** @var FreshRSS_Entry|null */ $entry = Minz_ExtensionManager::callHook('entry_before_insert', $entry); if ($entry === null) { // An extension has returned a null value, there is nothing to insert. |
